home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-01-05 | 925.8 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Dec 22 11:13:51 1992, modified Tue Jan 5 10:06:24 1993, creator 'HLX2', type 'ONLN', 922112 bytes "TN-Printing" , at 0xe1280 25645 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 54 4e 2d 50 72 69 | 6e 74 69 6e 67 00 00 00 |..TN-Pri|nting...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 0e 12 00 00 | 00 64 2d a7 5c ef 3f a7 |........|.d-.\.?.|
|00000060| 6f 54 70 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |oTp.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 25 3d 00 00 |........|....%=..|
|00000080| 43 6f 6c 6f 72 20 50 72 | 69 6e 74 69 6e 67 0d 43 |Color Pr|inting.C|
|00000090| 61 74 65 67 6f 72 79 09 | 44 65 73 69 67 6e 61 74 |ategory.|Designat|
|000000a0| 69 6f 6e 0d 52 65 76 69 | 73 65 64 20 62 79 3a 09 |ion.Revi|sed by:.|
|000000b0| 53 63 6f 74 74 20 22 5a | 5a 22 20 5a 69 6d 6d 65 |Scott "Z|Z" Zimme|
|000000c0| 72 6d 61 6e 09 4a 61 6e | 75 61 72 79 20 31 39 38 |rman.Jan|uary 198|
|000000d0| 38 09 0d 09 09 09 4d 61 | 72 63 68 20 31 39 38 38 |8.....Ma|rch 1988|
|000000e0| 0d 57 72 69 74 74 65 6e | 20 62 79 3a 09 47 69 6e |.Written| by:.Gin|
|000000f0| 67 65 72 20 4a 65 72 6e | 69 67 61 6e 09 46 65 62 |ger Jern|igan.Feb|
|00000100| 72 75 61 72 79 20 31 39 | 38 36 0d 54 68 69 73 20 |ruary 19|86.This |
|00000110| 64 69 73 63 75 73 73 65 | 73 20 63 6f 6c 6f 72 20 |discusse|s color |
|00000120| 70 72 69 6e 74 69 6e 67 | 20 69 6e 20 61 20 4d 61 |printing| in a Ma|
|00000130| 63 69 6e 74 6f 73 68 20 | 61 70 70 6c 69 63 61 74 |cintosh |applicat|
|00000140| 69 6f 6e 2e 0d 57 68 65 | 72 65 61 73 20 74 68 65 |ion..Whe|reas the|
|00000150| 20 6f 72 69 67 69 6e 61 | 6c 20 65 69 67 68 74 2d | origina|l eight-|
|00000160| 63 6f 6c 6f 72 20 6d 6f | 64 65 6c 20 6f 66 20 51 |color mo|del of Q|
|00000170| 75 69 63 6b 44 72 61 77 | 20 77 61 73 20 73 75 66 |uickDraw| was suf|
|00000180| 66 69 63 69 65 6e 74 20 | 66 6f 72 20 70 72 69 6e |ficient |for prin|
|00000190| 74 69 6e 67 20 69 6e 20 | 63 6f 6c 6f 72 20 6f 6e |ting in |color on|
|000001a0| 20 74 68 65 20 49 6d 61 | 67 65 57 72 69 74 65 72 | the Ima|geWriter|
|000001b0| 20 49 49 2c 20 74 68 65 | 20 69 6e 74 72 6f 64 75 | II, the| introdu|
|000001c0| 63 74 69 6f 6e 20 6f 66 | 20 43 6f 6c 6f 72 20 51 |ction of| Color Q|
|000001d0| 75 69 63 6b 44 72 61 77 | 20 68 61 73 20 63 72 65 |uickDraw| has cre|
|000001e0| 61 74 65 64 20 74 68 65 | 20 6e 65 65 64 20 66 6f |ated the| need fo|
|000001f0| 72 20 6d 6f 72 65 20 73 | 6f 70 68 69 73 74 69 63 |r more s|ophistic|
|00000200| 61 74 65 64 20 70 72 69 | 6e 74 69 6e 67 20 6d 65 |ated pri|nting me|
|00000210| 74 68 6f 64 73 2e 0d 54 | 68 65 20 66 69 72 73 74 |thods..T|he first|
|00000220| 20 73 65 63 74 69 6f 6e | 20 64 65 73 63 72 69 62 | section| describ|
|00000230| 65 73 20 75 73 69 6e 67 | 20 74 68 65 20 65 69 67 |es using| the eig|
|00000240| 68 74 2d 63 6f 6c 6f 72 | 20 51 75 69 63 6b 44 72 |ht-color| QuickDr|
|00000250| 61 77 20 6d 6f 64 65 6c | 20 77 69 74 68 20 74 68 |aw model| with th|
|00000260| 65 20 49 6d 61 67 65 57 | 72 69 74 65 72 20 49 49 |e ImageW|riter II|
|00000270| 20 61 6e 64 20 49 6d 61 | 67 65 57 72 69 74 65 72 | and Ima|geWriter|
|00000280| 20 4c 51 20 64 72 69 76 | 65 72 73 2e 20 53 69 6e | LQ driv|ers. Sin|
|00000290| 63 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 50 |ce the c|urrent P|
|000002a0| 72 69 6e 74 20 4d 61 6e | 61 67 65 72 20 64 6f 65 |rint Man|ager doe|
|000002b0| 73 20 6e 6f 74 20 73 75 | 70 70 6f 72 74 20 43 6f |s not su|pport Co|
|000002c0| 6c 6f 72 20 47 72 61 66 | 50 6f 72 74 73 2c 20 74 |lor Graf|Ports, t|
|000002d0| 68 65 20 65 69 67 68 74 | 2d 63 6f 6c 6f 72 20 6d |he eight|-color m|
|000002e0| 6f 64 65 6c 20 69 73 20 | 74 68 65 20 6f 6e 6c 79 |odel is |the only|
|000002f0| 20 6d 65 74 68 6f 64 20 | 61 76 61 69 6c 61 62 6c | method |availabl|
|00000300| 65 20 66 6f 72 20 74 68 | 65 20 49 6d 61 67 65 57 |e for th|e ImageW|
|00000310| 72 69 74 65 72 73 2e 0d | 54 68 65 20 6e 65 78 74 |riters..|The next|
|00000320| 20 73 65 63 74 69 6f 6e | 20 64 65 73 63 72 69 62 | section| describ|
|00000330| 65 73 20 61 20 74 65 63 | 68 6e 69 71 75 65 20 74 |es a tec|hnique t|
|00000340| 68 61 74 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |hat can |be used |
|00000350| 66 6f 72 20 70 72 69 6e | 74 69 6e 67 20 68 61 6c |for prin|ting hal|
|00000360| 66 74 6f 6e 65 20 69 6d | 61 67 65 73 20 75 73 69 |ftone im|ages usi|
|00000370| 6e 67 20 50 6f 73 74 53 | 63 72 69 70 74 20 28 77 |ng PostS|cript (w|
|00000380| 68 65 6e 20 69 74 20 69 | 73 20 61 76 61 69 6c 61 |hen it i|s availa|
|00000390| 62 6c 65 29 2e 20 41 6c | 73 6f 20 64 65 73 63 72 |ble). Al|so descr|
|000003a0| 69 62 65 64 20 69 73 20 | 61 20 64 65 76 69 63 65 |ibed is |a device|
|000003b0| 20 69 6e 64 65 70 65 6e | 64 65 6e 74 20 74 65 63 | indepen|dent tec|
|000003c0| 68 6e 69 71 75 65 20 66 | 6f 72 20 73 65 6e 64 69 |hnique f|or sendi|
|000003d0| 6e 67 20 74 68 65 20 50 | 6f 73 74 53 63 72 69 70 |ng the P|ostScrip|
|000003e0| 74 20 64 61 74 61 2e 20 | 54 68 69 73 20 74 65 63 |t data. |This tec|
|000003f0| 68 6e 69 71 75 65 20 63 | 61 6e 20 62 65 20 75 73 |hnique c|an be us|
|00000400| 65 64 20 6f 6e 20 61 6e | 79 20 4c 61 73 65 72 57 |ed on an|y LaserW|
|00000410| 72 69 74 65 72 20 64 72 | 69 76 65 72 20 33 2e 30 |riter dr|iver 3.0|
|00000420| 20 6f 72 20 6c 61 74 65 | 72 2e 20 49 74 20 77 69 | or late|r. It wi|
|00000430| 6c 6c 20 77 6f 72 6b 20 | 77 69 74 68 20 61 6c 6c |ll work |with all|
|00000440| 20 4c 61 73 65 72 57 72 | 69 74 65 72 73 20 65 78 | LaserWr|iters ex|
|00000450| 63 65 70 74 20 74 68 65 | 20 74 68 65 20 4c 61 73 |cept the| the Las|
|00000460| 65 72 57 72 69 74 65 72 | 20 49 49 53 43 2e 0d 49 |erWriter| IISC..I|
|00000470| 74 20 69 73 20 76 65 72 | 79 20 6c 69 6b 65 6c 79 |t is ver|y likely|
|00000480| 20 74 68 61 74 20 62 65 | 74 74 65 72 20 63 6f 6c | that be|tter col|
|00000490| 6f 72 20 73 75 70 70 6f | 72 74 20 77 69 6c 6c 20 |or suppo|rt will |
|000004a0| 62 65 20 61 64 64 65 64 | 20 74 6f 20 74 68 65 20 |be added| to the |
|000004b0| 50 72 69 6e 74 20 4d 61 | 6e 61 67 65 72 20 69 6e |Print Ma|nager in|
|000004c0| 20 74 68 65 20 66 75 74 | 75 72 65 2e 20 55 6e 74 | the fut|ure. Unt|
|000004d0| 69 6c 20 74 68 65 6e 2c | 20 74 68 65 73 65 20 61 |il then,| these a|
|000004e0| 72 65 20 74 68 65 20 62 | 65 73 74 20 6d 65 74 68 |re the b|est meth|
|000004f0| 6f 64 73 20 61 76 61 69 | 6c 61 62 6c 65 2e 0d 50 |ods avai|lable..P|
|00000500| 61 72 74 20 31 2c 20 49 | 6d 61 67 65 57 72 69 74 |art 1, I|mageWrit|
|00000510| 65 72 73 0d 54 68 65 20 | 49 6d 61 67 65 57 72 69 |ers.The |ImageWri|
|00000520| 74 65 72 20 64 72 69 76 | 65 72 73 20 61 72 65 20 |ter driv|ers are |
|00000530| 63 61 70 61 62 6c 65 20 | 6f 66 20 67 65 6e 65 72 |capable |of gener|
|00000540| 61 74 69 6e 67 20 65 61 | 63 68 20 6f 66 20 74 68 |ating ea|ch of th|
|00000550| 65 20 65 69 67 68 74 20 | 73 74 61 6e 64 61 72 64 |e eight |standard|
|00000560| 20 63 6f 6c 6f 72 73 20 | 64 65 66 69 6e 65 64 20 | colors |defined |
|00000570| 69 6e 20 51 75 69 63 6b | 44 72 61 77 20 62 79 20 |in Quick|Draw by |
|00000580| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 63 6f |the foll|owing co|
|00000590| 6e 73 74 61 6e 74 73 3a | 0d 09 77 68 69 74 65 43 |nstants:|..whiteC|
|000005a0| 6f 6c 6f 72 0d 09 62 6c | 61 63 6b 43 6f 6c 6f 72 |olor..bl|ackColor|
|000005b0| 0d 09 72 65 64 43 6f 6c | 6f 72 0d 09 67 72 65 65 |..redCol|or..gree|
|000005c0| 6e 43 6f 6c 6f 72 0d 09 | 62 6c 75 65 43 6f 6c 6f |nColor..|blueColo|
|000005d0| 72 0d 09 63 79 61 6e 43 | 6f 6c 6f 72 0d 09 6d 61 |r..cyanC|olor..ma|
|000005e0| 67 65 6e 74 61 43 6f 6c | 6f 72 0d 09 79 65 6c 6c |gentaCol|or..yell|
|000005f0| 6f 77 43 6f 6c 6f 72 0d | 54 6f 20 67 65 6e 65 72 |owColor.|To gener|
|00000600| 61 74 65 20 63 6f 6c 6f | 72 20 61 6c 6c 20 79 6f |ate colo|r all yo|
|00000610| 75 20 6e 65 65 64 20 74 | 6f 20 64 6f 20 69 73 20 |u need t|o do is |
|00000620| 73 65 74 20 74 68 65 20 | 66 6f 72 65 67 72 6f 75 |set the |foregrou|
|00000630| 6e 64 20 61 6e 64 20 62 | 61 63 6b 67 72 6f 75 6e |nd and b|ackgroun|
|00000640| 64 20 63 6f 6c 6f 72 73 | 20 62 65 66 6f 72 65 20 |d colors| before |
|00000650| 79 6f 75 20 62 65 67 69 | 6e 20 64 72 61 77 69 6e |you begi|n drawin|
|00000660| 67 20 28 69 6e 69 74 69 | 61 6c 6c 79 20 74 68 65 |g (initi|ally the|
|00000670| 79 20 61 72 65 20 73 65 | 74 20 74 6f 20 62 6c 61 |y are se|t to bla|
|00000680| 63 6b 43 6f 6c 6f 72 20 | 66 6f 72 65 67 72 6f 75 |ckColor |foregrou|
|00000690| 6e 64 20 61 6e 64 20 77 | 68 69 74 65 43 6f 6c 6f |nd and w|hiteColo|
|000006a0| 72 20 62 61 63 6b 67 72 | 6f 75 6e 64 29 2e 20 54 |r backgr|ound). T|
|000006b0| 6f 20 64 6f 20 74 68 69 | 73 20 79 6f 75 20 63 61 |o do thi|s you ca|
|000006c0| 6c 6c 20 74 68 65 20 51 | 75 69 63 6b 44 72 61 77 |ll the Q|uickDraw|
|000006d0| 20 72 6f 75 74 69 6e 65 | 73 20 46 6f 72 65 43 6f | routine|s ForeCo|
|000006e0| 6c 6f 72 20 61 6e 64 20 | 42 61 63 6b 43 6f 6c 6f |lor and |BackColo|
|000006f0| 72 20 61 73 20 64 65 73 | 63 72 69 62 65 64 20 69 |r as des|cribed i|
|00000700| 6e 20 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |n Inside| Macinto|
|00000710| 73 68 2e 20 49 66 20 79 | 6f 75 20 61 72 65 20 75 |sh. If y|ou are u|
|00000720| 73 69 6e 67 20 51 75 69 | 63 6b 44 72 61 77 20 70 |sing Qui|ckDraw p|
|00000730| 69 63 74 75 72 65 73 2c | 20 6d 61 6b 65 20 73 75 |ictures,| make su|
|00000740| 72 65 20 79 6f 75 20 73 | 65 74 20 74 68 65 20 66 |re you s|et the f|
|00000750| 6f 72 65 67 72 6f 75 6e | 64 20 61 6e 64 20 62 61 |oregroun|d and ba|
|00000760| 63 6b 67 72 6f 75 6e 64 | 20 63 6f 6c 6f 72 73 20 |ckground| colors |
|00000770| 62 65 66 6f 72 65 20 79 | 6f 75 20 63 61 6c 6c 20 |before y|ou call |
|00000780| 43 6c 6f 73 65 50 69 63 | 74 75 72 65 20 73 6f 20 |ClosePic|ture so |
|00000790| 74 68 61 74 20 74 68 65 | 79 20 61 72 65 20 72 65 |that the|y are re|
|000007a0| 63 6f 72 64 65 64 20 69 | 6e 20 74 68 65 20 70 69 |corded i|n the pi|
|000007b0| 63 74 75 72 65 2e 20 53 | 65 74 74 69 6e 67 20 74 |cture. S|etting t|
|000007c0| 68 65 20 63 6f 6c 6f 72 | 73 20 62 65 66 6f 72 65 |he color|s before|
|000007d0| 20 63 61 6c 6c 69 6e 67 | 20 44 72 61 77 50 69 63 | calling| DrawPic|
|000007e0| 74 75 72 65 20 64 6f 65 | 73 6e d5 74 20 77 6f 72 |ture doe|sn.t wor|
|000007f0| 6b 2e 0d 54 68 65 20 64 | 72 69 76 65 72 73 20 61 |k..The d|rivers a|
|00000800| 6c 73 6f 20 72 65 63 6f | 67 6e 69 7a 65 20 74 77 |lso reco|gnize tw|
|00000810| 6f 20 6f 66 20 74 68 65 | 20 74 72 61 6e 73 66 65 |o of the| transfe|
|00000820| 72 20 6d 6f 64 65 73 3a | 20 73 72 63 43 6f 70 79 |r modes:| srcCopy|
|00000830| 20 61 6e 64 20 73 72 63 | 4f 72 2e 20 54 68 65 20 | and src|Or. The |
|00000840| 65 66 66 65 63 74 20 6f | 66 20 74 68 65 20 6f 74 |effect o|f the ot|
|00000850| 68 65 72 20 74 72 61 6e | 73 66 65 72 20 6d 6f 64 |her tran|sfer mod|
|00000860| 65 73 20 69 73 20 6e 6f | 74 20 77 65 6c 6c 20 64 |es is no|t well d|
|00000870| 65 66 69 6e 65 64 20 61 | 6e 64 20 68 61 73 20 6e |efined a|nd has n|
|00000880| 6f 74 20 62 65 65 6e 20 | 74 65 73 74 65 64 2e 20 |ot been |tested. |
|00000890| 49 74 20 6d 61 79 20 62 | 65 20 62 65 73 74 20 74 |It may b|e best t|
|000008a0| 6f 20 73 74 61 79 20 61 | 77 61 79 20 66 72 6f 6d |o stay a|way from|
|000008b0| 20 74 68 65 6d 2e 0d 43 | 61 76 65 61 74 73 0d 57 | them..C|aveats.W|
|000008c0| 68 65 6e 20 70 72 69 6e | 74 69 6e 67 20 61 20 6c |hen prin|ting a l|
|000008d0| 61 72 67 65 20 61 72 65 | 61 20 6f 66 20 6d 6f 72 |arge are|a of mor|
|000008e0| 65 20 74 68 61 6e 20 6f | 6e 65 20 63 6f 6c 6f 72 |e than o|ne color|
|000008f0| 20 79 6f 75 20 77 69 6c | 6c 20 65 6e 63 6f 75 6e | you wil|l encoun|
|00000900| 74 65 72 20 61 20 70 72 | 6f 62 6c 65 6d 20 77 69 |ter a pr|oblem wi|
|00000910| 74 68 20 74 68 65 20 72 | 69 62 62 6f 6e 2e 20 57 |th the r|ibbon. W|
|00000920| 68 65 6e 20 79 6f 75 20 | 70 72 69 6e 74 20 61 20 |hen you |print a |
|00000930| 6c 61 72 67 65 20 61 72 | 65 61 20 6f 66 20 6f 6e |large ar|ea of on|
|00000940| 65 20 63 6f 6c 6f 72 2c | 20 74 68 65 20 70 72 69 |e color,| the pri|
|00000950| 6e 74 65 72 d5 73 20 70 | 69 6e 73 20 70 69 63 6b |nter.s p|ins pick|
|00000960| 20 75 70 20 74 68 65 20 | 63 6f 6c 6f 72 20 66 72 | up the |color fr|
|00000970| 6f 6d 20 74 68 65 20 62 | 61 63 6b 20 6f 66 20 74 |om the b|ack of t|
|00000980| 68 65 20 72 69 62 62 6f | 6e 2e 20 57 68 65 6e 20 |he ribbo|n. When |
|00000990| 61 6e 6f 74 68 65 72 20 | 6c 61 72 67 65 20 61 72 |another |large ar|
|000009a0| 65 61 20 6f 66 20 63 6f | 6c 6f 72 20 69 73 20 70 |ea of co|lor is p|
|000009b0| 72 69 6e 74 65 64 2c 20 | 74 68 65 20 70 69 6e 73 |rinted, |the pins|
|000009c0| 20 64 65 70 6f 73 69 74 | 20 74 68 65 20 70 72 65 | deposit| the pre|
|000009d0| 76 69 6f 75 73 20 63 6f | 6c 6f 72 20 6f 6e 74 6f |vious co|lor onto|
|000009e0| 20 74 68 65 20 62 61 63 | 6b 20 6f 66 20 74 68 65 | the bac|k of the|
|000009f0| 20 72 69 62 62 6f 6e 2e | 20 45 76 65 6e 74 75 61 | ribbon.| Eventua|
|00000a00| 6c 6c 79 20 74 68 65 20 | 66 69 72 73 74 20 63 6f |lly the |first co|
|00000a10| 6c 6f 72 20 77 69 6c 6c | 20 63 6f 6d 65 20 74 68 |lor will| come th|
|00000a20| 72 6f 75 67 68 20 74 6f | 20 74 68 65 20 66 72 6f |rough to| the fro|
|00000a30| 6e 74 20 6f 66 20 74 68 | 65 20 72 69 62 62 6f 6e |nt of th|e ribbon|
|00000a40| 2c 20 63 6f 6e 74 61 6d | 69 6e 61 74 69 6e 67 20 |, contam|inating |
|00000a50| 74 68 65 20 73 65 63 6f | 6e 64 20 63 6f 6c 6f 72 |the seco|nd color|
|00000a60| 2e 20 59 6f 75 20 63 61 | 6e 20 67 65 74 20 74 68 |. You ca|n get th|
|00000a70| 65 20 73 61 6d 65 20 6b | 69 6e 64 20 6f 66 20 65 |e same k|ind of e|
|00000a80| 66 66 65 63 74 20 69 66 | 20 79 6f 75 20 73 65 74 |ffect if| you set|
|00000a90| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 61 |, for ex|ample, a|
|00000aa0| 20 66 6f 72 65 67 72 6f | 75 6e 64 20 63 6f 6c 6f | foregro|und colo|
|00000ab0| 72 20 6f 66 20 79 65 6c | 6c 6f 77 20 61 6e 64 20 |r of yel|low and |
|00000ac0| 61 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 63 6f 6c |a backgr|ound col|
|00000ad0| 6f 72 20 6f 66 20 62 6c | 75 65 2e 20 54 68 65 20 |or of bl|ue. The |
|00000ae0| 72 69 62 62 6f 6e 20 77 | 69 6c 6c 20 70 69 63 6b |ribbon w|ill pick|
|00000af0| 20 75 70 20 74 68 65 20 | 62 6c 75 65 20 61 73 20 | up the |blue as |
|00000b00| 69 74 20 74 72 69 65 73 | 20 74 6f 20 70 72 69 6e |it tries| to prin|
|00000b10| 74 20 79 65 6c 6c 6f 77 | 20 6f 6e 20 74 6f 70 20 |t yellow| on top |
|00000b20| 6f 66 20 69 74 2e 20 54 | 68 69 73 20 70 72 6f 62 |of it. T|his prob|
|00000b30| 6c 65 6d 20 69 73 20 70 | 61 72 74 69 61 6c 6c 79 |lem is p|artially|
|00000b40| 20 61 6c 6c 65 76 69 61 | 74 65 64 20 69 6e 20 74 | allevia|ted in t|
|00000b50| 68 65 20 32 2e 33 20 76 | 65 72 73 69 6f 6e 20 6f |he 2.3 v|ersion o|
|00000b60| 66 20 74 68 65 20 49 6d | 61 67 65 57 72 69 74 65 |f the Im|ageWrite|
|00000b70| 72 20 64 72 69 76 65 72 | 20 62 79 20 75 73 69 6e |r driver| by usin|
|00000b80| 67 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 70 72 |g a diff|erent pr|
|00000b90| 69 6e 74 69 6e 67 20 74 | 65 63 68 6e 69 71 75 65 |inting t|echnique|
|00000ba0| 2e 0d 54 68 65 20 72 69 | 62 62 6f 6e 20 67 6f 65 |..The ri|bbon goe|
|00000bb0| 73 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 70 72 |s throug|h the pr|
|00000bc0| 69 6e 74 65 72 20 72 61 | 74 68 65 72 20 71 75 69 |inter ra|ther qui|
|00000bd0| 63 6b 6c 79 20 77 68 65 | 6e 20 70 72 69 6e 74 69 |ckly whe|n printi|
|00000be0| 6e 67 20 6c 61 72 67 65 | 20 61 72 65 61 73 2e 20 |ng large| areas. |
|00000bf0| 57 68 65 6e 20 74 68 65 | 20 72 69 62 62 6f 6e 20 |When the| ribbon |
|00000c00| 63 6f 6d 65 73 20 74 68 | 72 6f 75 67 68 20 74 68 |comes th|rough th|
|00000c10| 65 20 73 65 63 6f 6e 64 | 20 74 69 6d 65 20 74 68 |e second| time th|
|00000c20| 65 20 63 6f 6c 6f 72 73 | 20 64 6f 6e d5 74 20 6c |e colors| don.t l|
|00000c30| 6f 6f 6b 20 74 6f 6f 20 | 67 72 65 61 74 2e 0d 50 |ook too |great..P|
|00000c40| 61 72 74 20 32 2c 20 4c | 61 73 65 72 57 72 69 74 |art 2, L|aserWrit|
|00000c50| 65 72 73 0d 55 73 69 6e | 67 20 74 68 65 20 50 6f |ers.Usin|g the Po|
|00000c60| 73 74 53 63 72 69 70 74 | 20 d4 69 6d 61 67 65 d5 |stScript| .image.|
|00000c70| 20 4f 70 65 72 61 74 6f | 72 20 74 6f 20 50 72 69 | Operato|r to Pri|
|00000c80| 6e 74 20 48 61 6c 66 74 | 6f 6e 65 73 0d 41 62 6f |nt Halft|ones.Abo|
|00000c90| 75 74 20 d4 69 6d 61 67 | 65 d5 0d 54 68 65 20 50 |ut .imag|e..The P|
|00000ca0| 6f 73 74 53 63 72 69 70 | 74 20 69 6d 61 67 65 20 |ostScrip|t image |
|00000cb0| 6f 70 65 72 61 74 6f 72 | 20 69 73 20 75 73 65 64 |operator| is used|
|00000cc0| 20 74 6f 20 73 65 6e 64 | 20 42 69 74 6d 61 70 73 | to send| Bitmaps|
|00000cd0| 20 6f 72 20 50 69 78 6d | 61 70 73 20 74 6f 20 74 | or Pixm|aps to t|
|00000ce0| 68 65 20 4c 61 73 65 72 | 57 72 69 74 65 72 2e 20 |he Laser|Writer. |
|00000cf0| 54 68 65 20 69 6d 61 67 | 65 20 6f 70 65 72 61 74 |The imag|e operat|
|00000d00| 6f 72 20 63 61 6e 20 68 | 61 6e 64 6c 65 20 64 65 |or can h|andle de|
|00000d10| 70 74 68 73 20 66 72 6f | 6d 20 31 20 74 6f 20 38 |pths fro|m 1 to 8|
|00000d20| 20 62 69 74 73 20 70 65 | 72 20 70 69 78 65 6c 2e | bits pe|r pixel.|
|00000d30| 20 4f 75 72 20 63 75 72 | 72 65 6e 74 20 4c 61 73 | Our cur|rent Las|
|00000d40| 65 72 57 72 69 74 65 72 | 73 20 63 61 6e 20 6f 6e |erWriter|s can on|
|00000d50| 6c 79 20 69 6d 61 67 65 | 20 61 62 6f 75 74 20 74 |ly image| about t|
|00000d60| 77 65 6e 74 79 20 73 68 | 61 64 65 73 20 6f 66 20 |wenty sh|ades of |
|00000d70| 67 72 61 79 2c 20 62 75 | 74 20 74 68 65 20 70 72 |gray, bu|t the pr|
|00000d80| 69 6e 74 65 64 20 70 61 | 67 65 20 77 69 6c 6c 20 |inted pa|ge will |
|00000d90| 6c 6f 6f 6b 20 6c 69 6b | 65 20 74 68 65 72 65 d5 |look lik|e there.|
|00000da0| 73 20 6d 6f 72 65 2e 20 | 42 65 69 6e 67 20 74 68 |s more. |Being th|
|00000db0| 61 74 20 74 68 65 20 69 | 6d 61 67 65 20 6f 70 65 |at the i|mage ope|
|00000dc0| 72 61 74 6f 72 20 69 73 | 20 73 74 69 6c 6c 20 61 |rator is| still a|
|00000dd0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 6f 70 65 72 | PostScr|ipt oper|
|00000de0| 61 74 6f 72 2c 20 69 74 | 20 65 78 70 65 63 74 73 |ator, it| expects|
|00000df0| 20 69 74 73 20 64 61 74 | 61 20 69 6e 20 74 68 65 | its dat|a in the|
|00000e00| 20 66 6f 72 6d 20 6f 66 | 20 68 65 78 69 64 65 63 | form of| hexidec|
|00000e10| 69 6d 61 6c 20 62 79 74 | 65 73 2e 20 54 68 65 20 |imal byt|es. The |
|00000e20| 62 79 74 65 73 20 61 72 | 65 20 72 65 70 72 65 73 |bytes ar|e repres|
|00000e30| 65 6e 74 65 64 20 62 79 | 20 74 77 6f 20 41 53 43 |ented by| two ASC|
|00000e40| 49 49 20 63 68 61 72 61 | 63 74 65 72 73 28 30 2d |II chara|cters(0-|
|00000e50| 39 2c 41 2d 46 29 2e 20 | 54 68 65 20 69 6d 61 67 |9,A-F). |The imag|
|00000e60| 65 20 6f 70 65 72 61 74 | 6f 72 20 74 61 6b 65 73 |e operat|or takes|
|00000e70| 20 74 68 65 73 65 20 70 | 61 72 61 6d 65 74 65 72 | these p|arameter|
|00000e80| 73 3a 0d 09 77 69 64 74 | 68 20 20 68 65 69 67 68 |s:..widt|h heigh|
|00000e90| 74 20 20 64 65 70 74 68 | 20 20 6d 61 74 72 69 78 |t depth| matrix|
|00000ea0| 20 20 69 6d 61 67 65 2d | 64 61 74 61 0d 54 68 65 | image-|data.The|
|00000eb0| 20 66 69 72 73 74 20 74 | 68 72 65 65 20 61 72 65 | first t|hree are|
|00000ec0| 20 74 68 65 20 77 69 64 | 74 68 2c 20 68 65 69 67 | the wid|th, heig|
|00000ed0| 68 74 2c 20 61 6e 64 20 | 64 65 70 74 68 20 6f 66 |ht, and |depth of|
|00000ee0| 20 74 68 65 20 69 6d 61 | 67 65 2c 20 61 6e 64 20 | the ima|ge, and |
|00000ef0| 74 68 65 20 6d 61 74 72 | 69 78 20 69 73 20 74 68 |the matr|ix is th|
|00000f00| 65 20 74 72 61 6e 73 66 | 6f 72 6d 61 74 69 6f 6e |e transf|ormation|
|00000f10| 20 6d 61 74 72 69 78 20 | 74 6f 20 62 65 20 61 70 | matrix |to be ap|
|00000f20| 70 6c 69 65 64 20 74 6f | 20 74 68 65 20 63 75 72 |plied to| the cur|
|00000f30| 72 65 6e 74 20 6d 61 74 | 72 69 78 2e 20 53 65 65 |rent mat|rix. See|
|00000f40| 20 74 68 65 20 50 6f 73 | 74 53 63 72 69 70 74 20 | the Pos|tScript |
|00000f50| 4c 61 6e 67 75 61 67 65 | 20 52 65 66 65 72 65 6e |Language| Referen|
|00000f60| 63 65 20 4d 61 6e 75 61 | 6c 20 66 6f 72 20 6d 6f |ce Manua|l for mo|
|00000f70| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 20 |re infor|mation. |
|00000f80| 54 68 65 20 69 6d 61 67 | 65 20 64 61 74 61 20 69 |The imag|e data i|
|00000f90| 73 20 77 68 65 72 65 20 | 74 68 65 20 61 63 74 75 |s where |the actu|
|00000fa0| 61 6c 20 68 65 78 20 64 | 61 74 61 20 73 68 6f 75 |al hex d|ata shou|
|00000fb0| 6c 64 20 67 6f 2e 20 49 | 6e 73 74 65 61 64 20 6f |ld go. I|nstead o|
|00000fc0| 66 20 69 6e 73 65 72 74 | 69 6e 67 20 74 68 65 20 |f insert|ing the |
|00000fd0| 64 61 74 61 20 62 65 74 | 77 65 65 6e 20 74 68 65 |data bet|ween the|
|00000fe0| 20 66 69 72 73 74 20 70 | 61 72 61 6d 65 74 65 72 | first p|arameter|
|00000ff0| 73 20 61 6e 64 20 74 68 | 65 20 69 6d 61 67 65 20 |s and th|e image |
|00001000| 6f 70 65 72 61 74 6f 72 | 20 69 74 73 65 6c 66 2c |operator| itself,|
|00001010| 20 69 74 20 69 73 20 62 | 65 74 74 65 72 20 74 6f | it is b|etter to|
|00001020| 20 75 73 65 20 61 20 73 | 6d 61 6c 6c 2c 20 50 6f | use a s|mall, Po|
|00001030| 73 74 53 63 72 69 70 74 | 20 70 72 6f 63 65 64 75 |stScript| procedu|
|00001040| 72 65 20 74 6f 20 72 65 | 61 64 20 74 68 65 20 64 |re to re|ad the d|
|00001050| 61 74 61 20 73 74 61 72 | 74 69 6e 67 20 66 72 6f |ata star|ting fro|
|00001060| 6d 20 72 69 67 68 74 20 | 61 66 74 65 72 20 74 68 |m right |after th|
|00001070| 65 20 69 6d 61 67 65 20 | 6f 70 65 72 61 74 6f 72 |e image |operator|
|00001080| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0d 09 |. For ex|ample:..|
|00001090| 36 34 30 20 34 38 30 20 | 38 20 5b 36 34 30 20 30 |640 480 |8 [640 0|
|000010a0| 20 30 20 34 38 30 20 30 | 20 30 5d 0d 09 7b 63 75 | 0 480 0| 0]..{cu|
|000010b0| 72 72 65 6e 74 66 69 6c | 65 20 70 69 63 73 74 72 |rrentfil|e picstr|
|000010c0| 20 72 65 61 64 68 65 78 | 73 74 72 69 6e 67 20 70 | readhex|string p|
|000010d0| 6f 70 7d 0d 09 69 6d 61 | 67 65 0d 09 46 46 20 30 |op}..ima|ge..FF 0|
|000010e0| 30 20 46 46 20 30 30 20 | 46 46 20 30 30 20 46 46 |0 FF 00 |FF 00 FF|
|000010f0| 20 30 30 20 2e 2e 2e 0d | 49 6e 20 74 68 65 20 61 | 00 ....|In the a|
|00001100| 62 6f 76 65 20 65 78 61 | 6d 70 6c 65 2c 20 74 68 |bove exa|mple, th|
|00001110| 65 20 77 69 64 74 68 20 | 6f 66 20 74 68 65 20 69 |e width |of the i|
|00001120| 6d 61 67 65 20 69 73 20 | 36 34 30 2c 20 74 68 65 |mage is |640, the|
|00001130| 20 68 65 69 67 68 74 20 | 69 73 20 34 38 30 2c 20 | height |is 480, |
|00001140| 61 6e 64 20 74 68 65 20 | 64 65 70 74 68 20 69 73 |and the |depth is|
|00001150| 20 38 2e 20 54 68 65 20 | 6d 61 74 72 69 78 20 28 | 8. The |matrix (|
|00001160| 65 6e 63 6c 6f 73 65 64 | 20 69 6e 20 62 72 61 63 |enclosed| in brac|
|00001170| 6b 65 74 73 29 20 69 73 | 20 73 65 74 75 70 20 74 |kets) is| setup t|
|00001180| 6f 20 64 72 61 77 20 74 | 68 65 20 69 6d 61 67 65 |o draw t|he image|
|00001190| 20 73 74 61 72 74 69 6e | 67 20 61 74 20 51 75 69 | startin|g at Qui|
|000011a0| 63 6b 44 72 61 77 d5 73 | 20 30 2c 30 20 28 74 6f |ckDraw.s| 0,0 (to|
|000011b0| 70 20 6c 65 66 74 20 6f | 66 20 70 61 67 65 29 2c |p left o|f page),|
|000011c0| 20 61 6e 64 20 77 69 74 | 68 20 6e 6f 20 73 63 61 | and wit|h no sca|
|000011d0| 6c 69 6e 67 2e 20 54 68 | 65 20 50 6f 73 74 53 63 |ling. Th|e PostSc|
|000011e0| 72 69 70 74 20 63 6f 64 | 65 20 28 65 6e 63 6c 6f |ript cod|e (enclo|
|000011f0| 73 65 64 20 69 6e 20 62 | 72 61 63 65 73 29 20 69 |sed in b|races) i|
|00001200| 73 20 6e 6f 74 20 65 78 | 65 63 75 74 65 64 2e 20 |s not ex|ecuted. |
|00001210| 49 6e 73 74 65 61 64 2c | 20 69 74 20 69 73 20 70 |Instead,| it is p|
|00001220| 61 73 73 65 64 20 74 6f | 20 74 68 65 20 69 6d 61 |assed to| the ima|
|00001230| 67 65 20 6f 70 65 72 61 | 74 6f 72 2c 20 61 6e 64 |ge opera|tor, and|
|00001240| 20 74 68 65 20 69 6d 61 | 67 65 20 6f 70 65 72 61 | the ima|ge opera|
|00001250| 74 6f 72 20 77 69 6c 6c | 20 63 61 6c 6c 20 69 74 |tor will| call it|
|00001260| 20 72 65 70 65 61 74 65 | 64 6c 79 20 75 6e 74 69 | repeate|dly unti|
|00001270| 6c 20 69 74 20 68 61 73 | 20 65 6e 6f 75 67 68 20 |l it has| enough |
|00001280| 64 61 74 61 20 74 6f 20 | 64 72 61 77 20 74 68 65 |data to |draw the|
|00001290| 20 69 6d 61 67 65 2e 20 | 49 6e 20 74 68 69 73 20 | image. |In this |
|000012a0| 63 61 73 65 2c 20 69 74 | 20 77 69 6c 6c 20 62 65 |case, it| will be|
|000012b0| 20 65 78 70 65 63 74 69 | 6e 67 20 36 34 30 2a 34 | expecti|ng 640*4|
|000012c0| 38 30 20 62 79 74 65 73 | 2e 20 57 68 65 6e 20 74 |80 bytes|. When t|
|000012d0| 68 65 20 69 6d 61 67 65 | 20 6f 70 65 72 61 74 6f |he image| operato|
|000012e0| 72 20 63 61 6c 6c 73 20 | 74 68 65 20 70 72 6f 63 |r calls |the proc|
|000012f0| 65 64 75 72 65 2c 20 69 | 74 20 64 6f 65 73 20 74 |edure, i|t does t|
|00001300| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 3a 0d 31 2e |he follo|wing:.1.|
|00001310| 09 50 75 73 68 65 73 20 | 74 68 65 20 63 75 72 72 |.Pushes |the curr|
|00001320| 65 6e 74 20 66 69 6c 65 | 20 77 68 69 63 68 20 69 |ent file| which i|
|00001330| 6e 20 74 68 69 73 20 63 | 61 73 65 20 69 73 20 74 |n this c|ase is t|
|00001340| 68 65 20 73 74 72 65 61 | 6d 20 6f 66 20 64 61 74 |he strea|m of dat|
|00001350| 61 20 63 6f 6d 69 6e 67 | 20 74 6f 20 74 68 65 20 |a coming| to the |
|00001360| 4c 61 73 65 72 57 72 69 | 74 65 72 20 6f 76 65 72 |LaserWri|ter over|
|00001370| 20 41 70 70 6c 65 54 61 | 6c 6b 2e 20 54 68 69 73 | AppleTa|lk. This|
|00001380| 20 69 73 20 74 68 65 20 | 66 69 72 73 74 20 70 61 | is the |first pa|
|00001390| 72 61 6d 65 74 65 72 20 | 74 6f 20 72 65 61 64 68 |rameter |to readh|
|000013a0| 65 78 73 74 72 69 6e 67 | 2e 0d 32 2e 09 4e 65 78 |exstring|..2..Nex|
|000013b0| 74 20 70 69 63 73 74 72 | 20 69 73 20 70 75 73 68 |t picstr| is push|
|000013c0| 65 64 2e 20 70 69 63 73 | 74 72 20 69 73 20 61 20 |ed. pics|tr is a |
|000013d0| 73 74 72 69 6e 67 20 76 | 61 72 69 61 62 6c 65 20 |string v|ariable |
|000013e0| 64 65 66 69 6e 65 64 20 | 74 6f 20 68 6f 6c 64 20 |defined |to hold |
|000013f0| 6f 6e 65 20 72 6f 77 20 | 6f 66 20 68 65 78 20 64 |one row |of hex d|
|00001400| 61 74 61 2e 20 54 68 65 | 20 50 6f 73 74 53 63 72 |ata. The| PostScr|
|00001410| 69 70 74 20 74 6f 20 63 | 72 65 61 74 65 20 74 68 |ipt to c|reate th|
|00001420| 65 20 70 69 63 73 74 72 | 20 69 73 3a 0d 09 09 2f |e picstr| is:.../|
|00001430| 70 69 63 73 74 72 20 36 | 34 30 20 64 65 66 0d 33 |picstr 6|40 def.3|
|00001440| 2e 09 4e 6f 77 20 72 65 | 61 64 68 65 78 73 74 72 |..Now re|adhexstr|
|00001450| 69 6e 67 20 69 73 20 63 | 61 6c 6c 65 64 20 74 6f |ing is c|alled to|
|00001460| 20 66 69 6c 6c 20 70 69 | 63 73 74 72 20 77 69 74 | fill pi|cstr wit|
|00001470| 68 20 64 61 74 61 20 66 | 72 6f 6d 20 74 68 65 20 |h data f|rom the |
|00001480| 63 75 72 72 65 6e 74 20 | 66 69 6c 65 2e 20 49 74 |current |file. It|
|00001490| 20 62 65 67 69 6e 73 20 | 72 65 61 64 69 6e 67 20 | begins |reading |
|000014a0| 62 79 74 65 73 20 77 68 | 69 63 68 20 61 72 65 20 |bytes wh|ich are |
|000014b0| 74 68 65 20 63 68 61 72 | 61 63 74 65 72 73 20 66 |the char|acters f|
|000014c0| 6f 6c 6c 6f 77 69 6e 67 | 20 74 68 65 20 69 6d 61 |ollowing| the ima|
|000014d0| 67 65 20 6f 70 65 72 61 | 74 6f 72 2e 0d 34 2e 09 |ge opera|tor..4..|
|000014e0| 53 69 6e 63 65 20 72 65 | 61 64 68 65 78 73 74 72 |Since re|adhexstr|
|000014f0| 69 6e 67 20 6c 65 61 76 | 65 73 20 62 6f 74 68 20 |ing leav|es both |
|00001500| 74 68 65 20 73 74 72 69 | 6e 67 20 77 65 20 77 61 |the stri|ng we wa|
|00001510| 6e 74 2c 20 61 6e 64 20 | 61 20 62 6f 6f 6c 65 61 |nt, and |a boolea|
|00001520| 6e 20 74 68 61 74 20 77 | 65 20 64 6f 6e d5 74 20 |n that w|e don.t |
|00001530| 77 61 6e 74 20 6f 6e 20 | 74 68 65 20 73 74 61 63 |want on |the stac|
|00001540| 6b 2c 20 77 65 20 64 6f | 20 6f 6e 65 20 70 6f 70 |k, we do| one pop|
|00001550| 20 74 6f 20 6b 69 6c 6c | 20 6f 66 20 74 68 65 20 | to kill| of the |
|00001560| 62 6f 6f 6c 65 61 6e 2e | 20 4e 6f 77 20 74 68 65 |boolean.| Now the|
|00001570| 20 73 74 72 69 6e 67 20 | 69 73 20 6c 65 66 74 20 | string |is left |
|00001580| 62 65 68 69 6e 64 20 66 | 6f 72 20 74 68 65 20 69 |behind f|or the i|
|00001590| 6d 61 67 65 20 6f 70 65 | 72 61 74 6f 72 20 74 6f |mage ope|rator to|
|000015a0| 20 75 73 65 2e 0d 53 6f | 20 75 73 69 6e 67 20 74 | use..So| using t|
|000015b0| 68 65 20 61 62 6f 76 65 | 20 50 6f 73 74 53 63 72 |he above| PostScr|
|000015c0| 69 70 74 20 63 6f 64 65 | 20 79 6f 75 20 63 61 6e |ipt code| you can|
|000015d0| 20 65 61 73 69 6c 79 20 | 70 72 69 6e 74 20 61 6e | easily |print an|
|000015e0| 20 69 6d 61 67 65 2e 20 | 4a 75 73 74 20 66 69 6c | image. |Just fil|
|000015f0| 6c 20 69 6e 20 74 68 65 | 20 77 69 64 74 68 20 68 |l in the| width h|
|00001600| 65 69 67 68 74 20 61 6e | 64 20 64 65 70 74 68 2c |eight an|d depth,|
|00001610| 20 61 6e 64 20 73 65 6e | 64 20 74 68 65 20 68 65 | and sen|d the he|
|00001620| 78 20 64 61 74 61 20 69 | 6d 6d 65 64 69 61 74 65 |x data i|mmediate|
|00001630| 6c 79 20 66 6f 6c 6c 6f | 77 69 6e 67 20 74 68 65 |ly follo|wing the|
|00001640| 20 50 6f 73 74 53 63 72 | 69 70 74 20 63 6f 64 65 | PostScr|ipt code|
|00001650| 2e 0d 53 65 74 74 69 6e | 67 20 55 70 20 66 6f 72 |..Settin|g Up for|
|00001660| 20 d4 69 6d 61 67 65 d5 | 0d 4d 6f 73 74 20 6f 66 | .image.|.Most of|
|00001670| 20 74 68 65 20 75 73 65 | 72 73 20 6f 66 20 74 68 | the use|rs of th|
|00001680| 69 73 20 74 65 63 68 6e | 69 71 75 65 20 61 72 65 |is techn|ique are|
|00001690| 20 67 6f 69 6e 67 20 74 | 6f 20 77 61 6e 74 20 74 | going t|o want t|
|000016a0| 6f 20 70 72 69 6e 74 20 | 61 20 43 6f 6c 6f 72 20 |o print |a Color |
|000016b0| 51 75 69 63 6b 44 72 61 | 77 20 50 69 78 4d 61 70 |QuickDra|w PixMap|
|000016c0| 2e 20 41 6c 74 68 6f 75 | 67 68 20 74 68 65 20 69 |. Althou|gh the i|
|000016d0| 6d 61 67 65 20 63 6f 6d | 6d 61 6e 64 20 64 6f 65 |mage com|mand doe|
|000016e0| 73 20 61 20 6c 6f 74 20 | 6f 66 20 74 68 65 20 77 |s a lot |of the w|
|000016f0| 6f 72 6b 20 66 6f 72 20 | 79 6f 75 2c 20 74 68 65 |ork for |you, the|
|00001700| 72 65 20 61 72 65 20 73 | 74 69 6c 6c 20 61 20 63 |re are s|till a c|
|00001710| 6f 75 70 6c 65 20 6f 66 | 20 74 72 69 63 6b 73 20 |ouple of| tricks |
|00001720| 74 68 61 74 20 61 72 65 | 20 72 65 63 6f 6d 6d 65 |that are| recomme|
|00001730| 6e 64 65 64 20 66 6f 72 | 20 70 65 72 66 6f 72 6d |nded for| perform|
|00001740| 61 6e 63 65 2e 0d 41 73 | 73 75 6d 65 20 74 68 65 |ance..As|sume the|
|00001750| 20 4d 61 78 69 6d 75 6d | 20 44 65 70 74 68 0d 53 | Maximum| Depth.S|
|00001760| 69 6e 63 65 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ince the| current|
|00001770| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 | version| of the |
|00001780| 69 6d 61 67 65 20 6f 70 | 65 72 61 74 6f 72 20 68 |image op|erator h|
|00001790| 61 73 20 61 20 6d 61 78 | 69 6d 75 6d 20 64 65 70 |as a max|imum dep|
|000017a0| 74 68 20 6f 66 20 38 20 | 62 69 74 73 2f 70 69 78 |th of 8 |bits/pix|
|000017b0| 65 6c 2c 20 69 74 20 69 | 73 20 77 69 73 65 20 74 |el, it i|s wise t|
|000017c0| 6f 20 63 6f 6e 76 65 72 | 74 20 74 68 65 20 73 6f |o conver|t the so|
|000017d0| 75 72 63 65 20 69 6d 61 | 67 65 20 74 6f 20 74 68 |urce ima|ge to th|
|000017e0| 65 20 73 61 6d 65 20 64 | 65 70 74 68 20 62 65 66 |e same d|epth bef|
|000017f0| 6f 72 65 20 69 6d 61 67 | 69 6e 67 2e 20 54 68 69 |ore imag|ing. Thi|
|00001800| 73 20 63 61 6e 20 62 65 | 20 64 6f 6e 65 20 76 65 |s can be| done ve|
|00001810| 72 79 20 73 69 6d 70 6c | 79 20 62 79 20 75 73 69 |ry simpl|y by usi|
|00001820| 6e 67 20 61 6e 20 6f 66 | 66 73 63 72 65 65 6e 20 |ng an of|fscreen |
|00001830| 47 72 61 66 50 6f 72 74 | 20 74 68 61 74 20 69 73 |GrafPort| that is|
|00001840| 20 73 65 74 20 74 6f 20 | 38 20 62 69 74 73 2f 70 | set to |8 bits/p|
|00001850| 69 78 65 6c 2c 20 61 6e | 64 20 74 68 65 6e 20 75 |ixel, an|d then u|
|00001860| 73 69 6e 67 20 43 6f 70 | 79 42 69 74 73 20 74 6f |sing Cop|yBits to|
|00001870| 20 64 6f 20 74 68 65 20 | 64 65 70 74 68 20 63 6f | do the |depth co|
|00001880| 6e 76 65 72 73 69 6f 6e | 20 66 6f 72 20 79 6f 75 |nversion| for you|
|00001890| 2e 20 54 68 69 73 20 77 | 69 6c 6c 20 64 6f 20 61 |. This w|ill do a|
|000018a0| 20 6e 69 63 65 20 6a 6f | 62 20 6f 66 20 63 6f 6e | nice jo|b of con|
|000018b0| 76 65 72 74 69 6e 67 20 | 6c 6f 77 65 72 20 72 65 |verting |lower re|
|000018c0| 73 6f 6c 75 74 69 6f 6e | 20 69 6d 61 67 65 73 20 |solution| images |
|000018d0| 74 6f 20 38 20 62 69 74 | 73 2f 70 69 78 65 6c 2e |to 8 bit|s/pixel.|
|000018e0| 0d 42 75 69 6c 64 20 61 | 20 43 6f 6c 6f 72 20 54 |.Build a| Color T|
|000018f0| 61 62 6c 65 0d 41 6e 20 | 38 20 62 69 74 20 64 65 |able.An |8 bit de|
|00001900| 65 70 20 69 6d 61 67 65 | 20 63 61 6e 20 6f 6e 6c |ep image| can onl|
|00001910| 79 20 75 73 65 20 32 35 | 36 20 63 6f 6c 6f 72 73 |y use 25|6 colors|
|00001920| 2e 20 53 69 6e 63 65 20 | 74 68 65 20 69 6d 61 67 |. Since |the imag|
|00001930| 65 20 74 68 61 74 20 79 | 6f 75 20 61 72 65 20 73 |e that y|ou are s|
|00001940| 74 61 72 74 69 6e 67 20 | 77 69 74 68 20 69 73 20 |tarting |with is |
|00001950| 70 72 6f 62 61 62 6c 79 | 20 63 6f 6c 6f 72 2c 20 |probably| color, |
|00001960| 61 6e 64 20 74 68 65 20 | 69 6d 61 67 65 20 79 6f |and the |image yo|
|00001970| 75 20 67 65 74 20 77 69 | 6c 6c 20 62 65 20 67 72 |u get wi|ll be gr|
|00001980| 61 79 73 63 61 6c 65 2c | 20 79 6f 75 20 6e 65 65 |ayscale,| you nee|
|00001990| 64 20 74 6f 20 63 6f 6e | 76 65 72 74 20 74 68 65 |d to con|vert the|
|000019a0| 20 63 6f 6c 6f 72 73 20 | 69 6e 20 74 68 65 20 73 | colors |in the s|
|000019b0| 6f 75 72 63 65 20 63 6f | 6c 6f 72 20 74 61 62 6c |ource co|lor tabl|
|000019c0| 65 20 69 6e 74 6f 20 50 | 6f 73 74 53 63 72 69 70 |e into P|ostScrip|
|000019d0| 74 20 67 72 61 79 73 63 | 61 6c 65 20 76 61 6c 75 |t graysc|ale valu|
|000019e0| 65 73 2e 20 54 68 69 73 | 20 69 73 20 61 63 74 75 |es. This| is actu|
|000019f0| 61 6c 6c 79 20 65 61 73 | 79 20 74 6f 20 64 6f 20 |ally eas|y to do |
|00001a00| 75 73 69 6e 67 20 74 68 | 65 20 43 6f 6c 6f 72 20 |using th|e Color |
|00001a10| 4d 61 6e 61 67 65 72 2e | 20 46 69 72 73 74 20 63 |Manager.| First c|
|00001a20| 72 65 61 74 65 20 61 20 | 74 61 62 6c 65 20 74 68 |reate a |table th|
|00001a30| 61 74 20 63 61 6e 20 68 | 6f 6c 64 20 35 31 32 20 |at can h|old 512 |
|00001a40| 62 79 74 65 73 2e 20 54 | 68 69 73 20 69 73 20 32 |bytes. T|his is 2|
|00001a50| 20 62 79 74 65 73 20 66 | 6f 72 20 65 61 63 68 20 | bytes f|or each |
|00001a60| 63 6f 6c 6f 72 20 76 61 | 6c 75 65 20 66 72 6f 6d |color va|lue from|
|00001a70| 20 30 20 74 6f 20 32 35 | 35 2e 20 53 69 6e 63 65 | 0 to 25|5. Since|
|00001a80| 20 50 6f 73 74 53 63 72 | 69 70 74 20 77 61 6e 74 | PostScr|ipt want|
|00001a90| 73 20 74 68 65 20 76 61 | 6c 75 65 73 20 69 6e 20 |s the va|lues in |
|00001aa0| 41 53 43 49 49 2c 20 79 | 6f 75 20 6e 65 65 64 20 |ASCII, y|ou need |
|00001ab0| 74 77 6f 20 63 68 61 72 | 61 63 74 65 72 73 20 66 |two char|acters f|
|00001ac0| 6f 72 20 65 61 63 68 20 | 70 69 78 65 6c 2e 20 4e |or each |pixel. N|
|00001ad0| 6f 77 20 6c 6f 6f 70 20 | 74 68 72 6f 75 67 68 20 |ow loop |through |
|00001ae0| 74 68 65 20 63 6f 6c 6f | 72 73 20 69 6e 20 74 68 |the colo|rs in th|
|00001af0| 65 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 2e 20 43 |e color |table. C|
|00001b00| 61 6c 6c 20 49 6e 64 65 | 78 32 43 6f 6c 6f 72 20 |all Inde|x2Color |
|00001b10| 74 6f 20 67 65 74 20 74 | 68 65 20 72 65 61 6c 20 |to get t|he real |
|00001b20| 52 47 42 20 63 6f 6c 6f | 72 20 66 6f 72 20 74 68 |RGB colo|r for th|
|00001b30| 61 74 20 69 6e 64 65 78 | 2c 20 61 6e 64 20 74 68 |at index|, and th|
|00001b40| 65 6e 20 63 61 6c 6c 20 | 52 47 42 32 48 53 4c 20 |en call |RGB2HSL |
|00001b50| 74 6f 20 63 6f 6e 76 65 | 72 74 20 74 68 65 20 52 |to conve|rt the R|
|00001b60| 47 42 20 63 6f 6c 6f 72 | 20 69 6e 74 6f 20 61 20 |GB color| into a |
|00001b70| 6c 75 6d 69 6e 61 6e 63 | 65 20 76 61 6c 75 65 2e |luminanc|e value.|
|00001b80| 20 54 68 69 73 20 76 61 | 6c 75 65 20 77 69 6c 6c | This va|lue will|
|00001b90| 20 62 65 20 65 78 70 72 | 65 73 73 65 64 20 61 73 | be expr|essed as|
|00001ba0| 20 61 20 53 6d 61 6c 6c | 46 72 61 63 74 20 77 68 | a Small|Fract wh|
|00001bb0| 69 63 68 20 63 61 6e 20 | 74 68 65 6e 20 62 65 20 |ich can |then be |
|00001bc0| 73 63 61 6c 65 64 20 69 | 6e 74 6f 20 61 20 76 61 |scaled i|nto a va|
|00001bd0| 6c 75 65 20 66 72 6f 6d | 20 30 20 74 6f 20 32 35 |lue from| 0 to 25|
|00001be0| 35 2e 20 54 68 69 73 20 | 76 61 6c 75 65 20 73 68 |5. This |value sh|
|00001bf0| 6f 75 6c 64 20 74 68 65 | 6e 20 62 65 20 63 6f 6e |ould the|n be con|
|00001c00| 76 65 72 74 65 64 20 74 | 6f 20 41 53 43 49 49 2c |verted t|o ASCII,|
|00001c10| 20 61 6e 64 20 73 74 6f | 72 65 64 20 61 74 20 74 | and sto|red at t|
|00001c20| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 6c |he appro|priate l|
|00001c30| 6f 63 61 74 69 6f 6e 20 | 69 6e 20 74 68 65 20 74 |ocation |in the t|
|00001c40| 61 62 6c 65 2e 20 57 68 | 65 6e 20 79 6f 75 20 61 |able. Wh|en you a|
|00001c50| 72 65 20 64 6f 6e 65 2c | 20 79 6f 75 20 73 68 6f |re done,| you sho|
|00001c60| 75 6c 64 20 62 65 20 61 | 62 6c 65 20 74 6f 20 75 |uld be a|ble to u|
|00001c70| 73 65 20 61 20 70 69 78 | 65 6c 20 76 61 6c 75 65 |se a pix|el value|
|00001c80| 20 61 73 20 61 6e 20 69 | 6e 64 65 78 20 69 6e 74 | as an i|ndex int|
|00001c90| 6f 20 79 6f 75 72 20 74 | 61 62 6c 65 20 6f 66 20 |o your t|able of |
|00001ca0| 50 6f 73 74 53 63 72 69 | 70 74 20 63 6f 6c 6f 72 |PostScri|pt color|
|00001cb0| 20 76 61 6c 75 65 73 2e | 20 46 6f 72 20 65 61 63 | values.| For eac|
|00001cc0| 68 20 70 69 78 65 6c 20 | 69 6e 20 74 68 65 20 69 |h pixel |in the i|
|00001cd0| 6d 61 67 65 2c 20 73 65 | 6e 64 20 74 77 6f 20 63 |mage, se|nd two c|
|00001ce0| 68 61 72 61 63 74 65 72 | 73 20 74 6f 20 74 68 65 |haracter|s to the|
|00001cf0| 20 4c 61 73 65 72 57 72 | 69 74 65 72 2e 0d 53 65 | LaserWr|iter..Se|
|00001d00| 6e 64 69 6e 67 20 74 68 | 65 20 44 61 74 61 0d 4f |nding th|e Data.O|
|00001d10| 6e 63 65 20 79 6f 75 20 | 68 61 76 65 20 73 65 74 |nce you |have set|
|00001d20| 20 75 70 20 74 68 65 20 | 63 6f 6c 6f 72 20 74 61 | up the |color ta|
|00001d30| 62 6c 65 2c 20 61 6c 6c | 20 74 68 61 74 20 6c 65 |ble, all| that le|
|00001d40| 66 74 20 74 6f 20 64 6f | 20 69 73 20 74 6f 20 6c |ft to do| is to l|
|00001d50| 6f 6f 70 20 74 68 72 6f | 75 67 68 20 61 6c 6c 20 |oop thro|ugh all |
|00001d60| 6f 66 20 74 68 65 20 70 | 69 78 65 6c 73 2c 20 61 |of the p|ixels, a|
|00001d70| 6e 64 20 73 65 6e 64 20 | 74 68 65 69 72 20 50 6f |nd send |their Po|
|00001d80| 73 74 53 63 72 69 70 74 | 20 72 65 70 72 65 73 65 |stScript| represe|
|00001d90| 6e 74 61 74 69 6f 6e 20 | 74 6f 20 74 68 65 20 4c |ntation |to the L|
|00001da0| 61 73 65 72 57 72 69 74 | 65 72 2e 20 54 68 65 72 |aserWrit|er. Ther|
|00001db0| 65 20 61 72 65 20 61 20 | 63 6f 75 70 6c 65 20 6f |e are a |couple o|
|00001dc0| 66 20 77 61 79 73 20 74 | 6f 20 64 6f 20 74 68 69 |f ways t|o do thi|
|00001dd0| 73 2e 20 46 69 72 73 74 | 20 69 73 20 74 6f 20 75 |s. First| is to u|
|00001de0| 73 65 20 74 68 65 20 6c | 6f 77 2d 6c 65 76 65 6c |se the l|ow-level|
|00001df0| 20 50 72 69 6e 74 20 4d | 61 6e 61 67 65 72 20 69 | Print M|anager i|
|00001e00| 6e 74 65 72 66 61 63 65 | 20 61 6e 64 20 73 74 72 |nterface| and str|
|00001e10| 65 61 6d 20 74 68 65 20 | 50 6f 73 74 53 63 72 69 |eam the |PostScri|
|00001e20| 70 74 20 75 73 69 6e 67 | 20 74 68 65 20 73 74 64 |pt using| the std|
|00001e30| 42 75 66 20 50 72 43 74 | 6c 43 61 6c 6c 2e 20 41 |Buf PrCt|lCall. A|
|00001e40| 6c 74 68 6f 75 67 68 20 | 74 68 69 73 20 73 65 65 |lthough |this see|
|00001e50| 6d 73 20 6c 69 6b 65 20 | 69 74 20 77 6f 75 6c 64 |ms like |it would|
|00001e60| 20 62 65 20 74 68 65 20 | 66 61 73 74 65 73 74 20 | be the |fastest |
|00001e70| 77 61 79 2c 20 74 68 65 | 20 6c 61 74 65 73 74 20 |way, the| latest |
|00001e80| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 65 20 4c |version |of the L|
|00001e90| 61 73 65 72 57 72 69 74 | 65 72 20 64 72 69 76 65 |aserWrit|er drive|
|00001ea0| 72 20 28 35 2e 30 29 20 | 63 6f 6e 76 65 72 74 73 |r (5.0) |converts|
|00001eb0| 20 61 6c 6c 20 6c 6f 77 | 2d 6c 65 76 65 6c 20 63 | all low|-level c|
|00001ec0| 61 6c 6c 73 20 74 6f 20 | 74 68 65 69 72 20 68 69 |alls to |their hi|
|00001ed0| 67 68 20 6c 65 76 65 6c | 20 65 71 75 69 76 61 6c |gh level| equival|
|00001ee0| 65 6e 74 20 62 65 66 6f | 72 65 20 65 78 65 63 75 |ent befo|re execu|
|00001ef0| 74 69 6e 67 20 74 68 65 | 6d 2e 20 42 65 63 61 75 |ting the|m. Becau|
|00001f00| 73 65 20 6f 66 20 74 68 | 69 73 2c 20 74 68 65 20 |se of th|is, the |
|00001f10| 6c 6f 77 2d 6c 65 76 65 | 6c 20 69 6e 74 65 72 66 |low-leve|l interf|
|00001f20| 61 63 65 20 69 73 20 6e | 6f 20 6c 6f 6e 67 65 72 |ace is n|o longer|
|00001f30| 20 66 61 73 74 65 72 20 | 74 68 61 6e 20 74 68 65 | faster |than the|
|00001f40| 20 68 69 67 68 20 6c 65 | 76 65 6c 2e 20 49 6e 20 | high le|vel. In |
|00001f50| 61 6e 20 46 4b 45 59 20 | 49 20 68 61 76 65 20 77 |an FKEY |I have w|
|00001f60| 72 69 74 74 65 6e 2c 20 | 49 20 75 73 65 20 74 68 |ritten, |I use th|
|00001f70| 65 20 68 69 67 68 2d 6c | 65 76 65 6c 20 50 72 69 |e high-l|evel Pri|
|00001f80| 6e 74 20 4d 61 6e 61 67 | 65 72 20 69 6e 74 65 72 |nt Manag|er inter|
|00001f90| 66 61 63 65 2c 20 61 6e | 64 20 73 65 6e 64 20 74 |face, an|d send t|
|00001fa0| 68 65 20 64 61 74 61 20 | 76 69 61 20 74 68 65 20 |he data |via the |
|00001fb0| 50 6f 73 74 53 63 72 69 | 70 74 48 61 6e 64 6c 65 |PostScri|ptHandle|
|00001fc0| 20 50 69 63 43 6f 6d 6d | 65 6e 74 2e 20 54 68 69 | PicComm|ent. Thi|
|00001fd0| 73 20 77 61 79 2c 20 49 | 20 63 61 6e 20 62 75 66 |s way, I| can buf|
|00001fe0| 66 65 72 20 61 20 6c 61 | 72 67 65 20 61 6d 6f 75 |fer a la|rge amou|
|00001ff0| 6e 74 20 6f 66 20 64 61 | 74 61 2c 20 62 65 66 6f |nt of da|ta, befo|
|00002000| 72 65 20 61 63 74 75 61 | 6c 6c 79 20 73 65 6e 64 |re actua|lly send|
|00002010| 69 6e 67 20 69 74 2e 20 | 55 73 69 6e 67 20 74 68 |ing it. |Using th|
|00002020| 69 73 20 74 65 63 68 6e | 69 71 75 65 2c 20 49 20 |is techn|ique, I |
|00002030| 68 61 76 65 20 62 65 65 | 6e 20 61 62 6c 65 20 74 |have bee|n able t|
|00002040| 6f 20 69 6d 61 67 65 20 | 61 20 4d 61 63 20 49 49 |o image |a Mac II|
|00002050| 20 73 63 72 65 65 6e 20 | 69 6e 20 61 62 6f 75 74 | screen |in about|
|00002060| 20 35 20 6d 69 6e 75 74 | 65 73 20 6f 6e 20 61 20 | 5 minut|es on a |
|00002070| 4c 61 73 65 72 57 72 69 | 74 65 72 20 50 6c 75 73 |LaserWri|ter Plus|
|00002080| 2c 20 61 6e 64 20 61 62 | 6f 75 74 20 31 2e 35 20 |, and ab|out 1.5 |
|00002090| 6d 69 6e 75 74 65 73 20 | 6f 6e 20 61 20 4c 61 73 |minutes |on a Las|
|000020a0| 65 72 57 72 69 74 65 72 | 20 49 49 20 4e 54 58 2e |erWriter| II NTX.|
|000020b0| 0d 46 75 72 74 68 65 72 | 20 52 65 66 65 72 65 6e |.Further| Referen|
|000020c0| 63 65 3a 0d a5 09 51 75 | 69 63 6b 44 72 61 77 0d |ce:...Qu|ickDraw.|
|000020d0| a5 09 54 68 65 20 50 72 | 69 6e 74 69 6e 67 20 4d |..The Pr|inting M|
|000020e0| 61 6e 61 67 65 72 0d a5 | 09 50 6f 73 74 53 63 72 |anager..|.PostScr|
|000020f0| 69 70 74 20 4c 61 6e 67 | 75 61 67 65 20 52 65 66 |ipt Lang|uage Ref|
|00002100| 65 72 65 6e 63 65 20 4d | 61 6e 75 61 6c 2c 20 41 |erence M|anual, A|
|00002110| 64 6f 62 65 20 53 79 73 | 74 65 6d 73 0d 44 65 76 |dobe Sys|tems.Dev|
|00002120| 69 63 65 2d 49 6e 64 65 | 70 65 6e 64 65 6e 74 20 |ice-Inde|pendent |
|00002130| 50 72 69 6e 74 69 6e 67 | 0d 49 6d 61 67 69 6e 67 |Printing|.Imaging|
|00002140| 09 4d 2e 49 4d 2e 44 65 | 76 49 6e 64 50 72 69 6e |.M.IM.De|vIndPrin|
|00002150| 74 69 6e 67 0d 52 65 76 | 69 73 65 64 20 62 79 3a |ting.Rev|ised by:|
|00002160| 09 09 4d 61 72 63 68 20 | 31 39 38 38 0d 57 72 69 |..March |1988.Wri|
|00002170| 74 74 65 6e 20 62 79 3a | 09 47 69 6e 67 65 72 20 |tten by:|.Ginger |
|00002180| 4a 65 72 6e 69 67 61 6e | 20 09 4d 61 79 20 31 39 |Jernigan| .May 19|
|00002190| 38 37 0d 54 68 65 20 50 | 72 69 6e 74 69 6e 67 20 |87.The P|rinting |
|000021a0| 4d 61 6e 61 67 65 72 20 | 77 61 73 20 64 65 73 69 |Manager |was desi|
|000021b0| 67 6e 65 64 20 74 6f 20 | 67 69 76 65 20 4d 61 63 |gned to |give Mac|
|000021c0| 69 6e 74 6f 73 68 20 61 | 70 70 6c 69 63 61 74 69 |intosh a|pplicati|
|000021d0| 6f 6e 73 20 61 20 64 65 | 76 69 63 65 2d 20 69 6e |ons a de|vice- in|
|000021e0| 64 65 70 65 6e 64 65 6e | 74 20 6d 65 74 68 6f 64 |dependen|t method|
|000021f0| 20 6f 66 20 70 72 69 6e | 74 69 6e 67 2c 20 62 75 | of prin|ting, bu|
|00002200| 74 20 77 65 20 68 61 76 | 65 20 70 72 6f 76 69 64 |t we hav|e provid|
|00002210| 65 64 20 64 65 76 69 63 | 65 2d 64 65 70 65 6e 64 |ed devic|e-depend|
|00002220| 65 6e 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2c |ent info|rmation,|
|00002230| 20 73 75 63 68 20 61 73 | 20 74 68 65 20 63 6f 6e | such as| the con|
|00002240| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 70 72 69 |tents of| the pri|
|00002250| 6e 74 20 72 65 63 6f 72 | 64 2e 20 44 75 65 20 74 |nt recor|d. Due t|
|00002260| 6f 20 74 68 65 20 6c 61 | 72 67 65 20 6e 75 6d 62 |o the la|rge numb|
|00002270| 65 72 20 6f 66 20 70 72 | 69 6e 74 65 72 2d 74 79 |er of pr|inter-ty|
|00002280| 70 65 20 64 72 69 76 65 | 72 73 20 62 65 63 6f 6d |pe drive|rs becom|
|00002290| 69 6e 67 20 61 76 61 69 | 6c 61 62 6c 65 20 28 65 |ing avai|lable (e|
|000022a0| 76 65 6e 20 66 6f 72 20 | 6e 6f 6e 2d 70 72 69 6e |ven for |non-prin|
|000022b0| 74 65 72 20 64 65 76 69 | 63 65 73 29 20 64 65 76 |ter devi|ces) dev|
|000022c0| 69 63 65 20 69 6e 64 65 | 70 65 6e 64 65 6e 63 65 |ice inde|pendence|
|000022d0| 20 69 73 20 6d 6f 72 65 | 20 6e 65 63 65 73 73 61 | is more| necessa|
|000022e0| 72 79 20 74 68 61 6e 20 | 65 76 65 72 2e 20 57 68 |ry than |ever. Wh|
|000022f0| 61 74 20 74 68 69 73 20 | 6d 65 61 6e 73 20 74 6f |at this |means to|
|00002300| 20 79 6f 75 2c 20 61 73 | 20 61 20 64 65 76 65 6c | you, as| a devel|
|00002310| 6f 70 65 72 2c 20 69 73 | 20 74 68 61 74 20 77 65 |oper, is| that we|
|00002320| 20 77 69 6c 6c 20 6e 6f | 20 6c 6f 6e 67 65 72 20 | will no| longer |
|00002330| 62 65 20 70 72 6f 76 69 | 64 69 6e 67 20 28 6f 72 |be provi|ding (or|
|00002340| 20 73 75 70 70 6f 72 74 | 69 6e 67 29 20 69 6e 66 | support|ing) inf|
|00002350| 6f 72 6d 61 74 69 6f 6e | 20 72 65 67 61 72 64 69 |ormation| regardi|
|00002360| 6e 67 20 74 68 65 20 69 | 6e 74 65 72 6e 61 6c 20 |ng the i|nternal |
|00002370| 73 74 72 75 63 74 75 72 | 65 20 6f 66 20 74 68 65 |structur|e of the|
|00002380| 20 70 72 69 6e 74 20 72 | 65 63 6f 72 64 2e 20 0d | print r|ecord. .|
|00002390| 57 65 20 72 65 61 6c 69 | 7a 65 20 74 68 61 74 20 |We reali|ze that |
|000023a0| 74 68 65 72 65 20 61 72 | 65 20 73 69 74 75 61 74 |there ar|e situat|
|000023b0| 69 6f 6e 73 20 77 68 65 | 72 65 20 74 68 65 20 61 |ions whe|re the a|
|000023c0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6d 61 79 20 6b |pplicati|on may k|
|000023d0| 6e 6f 77 20 74 68 65 20 | 62 65 73 74 20 6d 65 74 |now the |best met|
|000023e0| 68 6f 64 20 66 6f 72 20 | 70 72 69 6e 74 69 6e 67 |hod for |printing|
|000023f0| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 64 6f | a parti|cular do|
|00002400| 63 75 6d 65 6e 74 20 61 | 6e 64 20 6d 61 79 20 77 |cument a|nd may w|
|00002410| 61 6e 74 20 74 6f 20 62 | 79 70 61 73 73 20 6f 75 |ant to b|ypass ou|
|00002420| 72 20 64 69 61 6c 6f 67 | 73 2e 20 55 6e 66 6f 72 |r dialog|s. Unfor|
|00002430| 74 75 6e 61 74 65 6c 79 | 2c 20 75 73 69 6e 67 20 |tunately|, using |
|00002440| 79 6f 75 72 20 6f 77 6e | 20 64 69 61 6c 6f 67 73 |your own| dialogs|
|00002450| 20 6f 72 20 6e 6f 74 20 | 75 73 69 6e 67 20 74 68 | or not |using th|
|00002460| 65 20 64 69 61 6c 6f 67 | 73 20 61 74 20 61 6c 6c |e dialog|s at all|
|00002470| 2c 20 72 65 71 75 69 72 | 65 73 20 73 65 74 74 69 |, requir|es setti|
|00002480| 6e 67 20 74 68 65 20 6e | 65 63 65 73 73 61 72 79 |ng the n|ecessary|
|00002490| 20 66 69 65 6c 64 73 20 | 69 6e 20 74 68 65 20 70 | fields |in the p|
|000024a0| 72 69 6e 74 20 72 65 63 | 6f 72 64 20 79 6f 75 72 |rint rec|ord your|
|000024b0| 73 65 6c 66 2e 20 54 68 | 65 72 65 20 61 72 65 20 |self. Th|ere are |
|000024c0| 61 20 6e 75 6d 62 65 72 | 20 6f 66 20 70 72 6f 62 |a number| of prob|
|000024d0| 6c 65 6d 73 3a 0d a5 09 | 4d 61 6e 79 20 6f 66 20 |lems:...|Many of |
|000024e0| 74 68 65 20 66 69 65 6c | 64 73 20 69 6e 20 74 68 |the fiel|ds in th|
|000024f0| 65 20 70 72 69 6e 74 20 | 72 65 63 6f 72 64 20 61 |e print |record a|
|00002500| 72 65 20 75 6e 64 6f 63 | 75 6d 65 6e 74 65 64 2c |re undoc|umented,|
|00002510| 20 61 6e 64 2c 20 61 73 | 20 77 65 20 63 68 61 6e | and, as| we chan|
|00002520| 67 65 20 74 68 65 20 69 | 6e 74 65 72 6e 61 6c 20 |ge the i|nternal |
|00002530| 61 72 63 68 69 74 65 63 | 74 75 72 65 20 6f 66 20 |architec|ture of |
|00002540| 74 68 65 20 50 72 69 6e | 74 69 6e 67 20 4d 61 6e |the Prin|ting Man|
|00002550| 61 67 65 72 20 74 6f 20 | 61 63 63 6f 6d 6d 6f 64 |ager to |accommod|
|00002560| 61 74 65 20 6e 65 77 20 | 64 65 76 69 63 65 73 2c |ate new |devices,|
|00002570| 20 74 68 6f 73 65 20 75 | 6e 64 6f 63 75 6d 65 6e | those u|ndocumen|
|00002580| 74 65 64 20 66 69 65 6c | 64 73 20 61 72 65 20 6c |ted fiel|ds are l|
|00002590| 69 6b 65 6c 79 20 74 6f | 20 63 68 61 6e 67 65 2e |ikely to| change.|
|000025a0| 0d a5 09 45 61 63 68 20 | 64 72 69 76 65 72 20 75 |...Each |driver u|
|000025b0| 73 65 73 20 74 68 65 20 | 70 72 69 76 61 74 65 2c |ses the |private,|
|000025c0| 20 61 6e 64 20 6d 61 6e | 79 20 6f 66 20 74 68 65 | and man|y of the|
|000025d0| 20 70 75 62 6c 69 63 2c | 20 66 69 65 6c 64 73 20 | public,| fields |
|000025e0| 69 6e 20 74 68 65 20 70 | 72 69 6e 74 20 72 65 63 |in the p|rint rec|
|000025f0| 6f 72 64 20 64 69 66 66 | 65 72 65 6e 74 6c 79 2e |ord diff|erently.|
|00002600| 20 20 54 68 65 20 69 6d | 70 6c 69 63 61 74 69 6f | The im|plicatio|
|00002610| 6e 73 20 61 72 65 20 74 | 68 61 74 20 79 6f 75 20 |ns are t|hat you |
|00002620| 77 6f 75 6c 64 20 6e 65 | 65 64 20 69 6e 74 69 6d |would ne|ed intim|
|00002630| 61 74 65 20 6b 6e 6f 77 | 6c 65 64 67 65 20 6f 66 |ate know|ledge of|
|00002640| 20 68 6f 77 20 65 61 63 | 68 20 66 69 65 6c 64 20 | how eac|h field |
|00002650| 69 73 20 75 73 65 64 20 | 62 79 20 20 65 61 63 68 |is used |by each|
|00002660| 20 61 76 61 69 6c 61 62 | 6c 65 20 64 72 69 76 65 | availab|le drive|
|00002670| 72 2c 20 61 6e 64 20 79 | 6f 75 20 77 6f 75 6c 64 |r, and y|ou would|
|00002680| 20 68 61 76 65 20 74 6f | 20 73 65 74 20 74 68 65 | have to| set the|
|00002690| 20 66 69 65 6c 64 73 20 | 69 6e 20 74 68 65 20 72 | fields |in the r|
|000026a0| 65 63 6f 72 64 20 64 69 | 66 66 65 72 65 6e 74 6c |ecord di|fferentl|
|000026b0| 79 20 64 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 74 |y depend|ing on t|
|000026c0| 68 65 20 64 72 69 76 65 | 72 20 63 68 6f 73 65 6e |he drive|r chosen|
|000026d0| 2e 20 41 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |. As the| number |
|000026e0| 6f 66 20 61 76 61 69 6c | 61 62 6c 65 20 70 72 69 |of avail|able pri|
|000026f0| 6e 74 65 72 2d 74 79 70 | 65 20 64 72 69 76 65 72 |nter-typ|e driver|
|00002700| 73 20 69 6e 63 72 65 61 | 73 65 73 2c 20 74 68 69 |s increa|ses, thi|
|00002710| 73 20 63 61 6e 20 62 65 | 63 6f 6d 65 20 61 20 63 |s can be|come a c|
|00002720| 75 6d 62 65 72 73 6f 6d | 65 20 74 61 73 6b 2e 0d |umbersom|e task..|
|00002730| 53 75 6d 6d 61 72 79 0d | 54 6f 20 62 65 20 63 6f |Summary.|To be co|
|00002740| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 66 75 |mpatible| with fu|
|00002750| 74 75 72 65 20 70 72 69 | 6e 74 65 72 2d 6c 69 6b |ture pri|nter-lik|
|00002760| 65 20 64 65 76 69 63 65 | 73 2c 20 69 74 20 69 73 |e device|s, it is|
|00002770| 20 65 73 73 65 6e 74 69 | 61 6c 20 74 68 61 74 20 | essenti|al that |
|00002780| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00002790| 20 70 72 69 6e 74 20 69 | 6e 20 61 20 64 65 76 69 | print i|n a devi|
|000027a0| 63 65 2d 69 6e 64 65 70 | 65 6e 64 65 6e 74 20 6d |ce-indep|endent m|
|000027b0| 61 6e 6e 65 72 2e 20 41 | 76 6f 69 64 20 74 65 73 |anner. A|void tes|
|000027c0| 74 69 6e 67 20 75 6e 64 | 6f 63 75 6d 65 6e 74 65 |ting und|ocumente|
|000027d0| 64 20 66 69 65 6c 64 73 | 2c 20 73 65 74 74 69 6e |d fields|, settin|
|000027e0| 67 20 66 69 65 6c 64 73 | 20 69 6e 20 74 68 65 20 |g fields| in the |
|000027f0| 70 72 69 6e 74 20 72 65 | 63 6f 72 64 20 64 69 72 |print re|cord dir|
|00002800| 65 63 74 6c 79 20 61 6e | 64 20 62 79 70 61 73 73 |ectly an|d bypass|
|00002810| 69 6e 67 20 74 68 65 20 | 65 78 69 73 74 69 6e 67 |ing the |existing|
|00002820| 20 70 72 69 6e 74 20 64 | 69 61 6c 6f 67 73 2e 20 | print d|ialogs. |
|00002830| 55 73 65 20 74 68 65 20 | 50 72 69 6e 74 69 6e 67 |Use the |Printing|
|00002840| 20 4d 61 6e 61 67 65 72 | 20 64 69 61 6c 6f 67 73 | Manager| dialogs|
|00002850| 2c 20 50 72 69 6e 74 44 | 65 66 61 75 6c 74 20 61 |, PrintD|efault a|
|00002860| 6e 64 20 50 72 56 61 6c | 69 64 61 74 65 20 74 6f |nd PrVal|idate to|
|00002870| 20 73 65 74 20 75 70 20 | 74 68 65 20 70 72 69 6e | set up |the prin|
|00002880| 74 20 72 65 63 6f 72 64 | 20 66 6f 72 20 79 6f 75 |t record| for you|
|00002890| 2e 0d 46 75 72 74 68 65 | 72 20 52 65 66 65 72 65 |..Furthe|r Refere|
|000028a0| 6e 63 65 3a 0d a5 09 54 | 68 65 20 50 72 69 6e 74 |nce:...T|he Print|
|000028b0| 69 6e 67 20 4d 61 6e 61 | 67 65 72 0d 44 6f 63 75 |ing Mana|ger.Docu|
|000028c0| 6d 65 6e 74 20 4e 61 6d | 65 73 20 61 6e 64 20 74 |ment Nam|es and t|
|000028d0| 68 65 20 50 72 69 6e 74 | 69 6e 67 20 4d 61 6e 61 |he Print|ing Mana|
|000028e0| 67 65 72 0d 49 6d 61 67 | 69 6e 67 09 4d 2e 49 4d |ger.Imag|ing.M.IM|
|000028f0| 2e 44 6f 63 4e 61 6d 65 | 73 0d 52 65 76 69 73 65 |.DocName|s.Revise|
|00002900| 64 20 62 79 3a 09 09 4d | 61 72 63 68 20 31 39 38 |d by:..M|arch 198|
|00002910| 38 0d 57 72 69 74 74 65 | 6e 20 62 79 3a 09 42 72 |8.Writte|n by:.Br|
|00002920| 79 61 6e 20 53 74 65 61 | 72 6e 73 09 4a 75 6c 79 |yan Stea|rns.July|
|00002930| 20 31 39 38 37 0d 4f 75 | 72 20 63 6f 6d 70 61 74 | 1987.Ou|r compat|
|00002940| 69 62 69 6c 69 74 79 20 | 74 65 73 74 69 6e 67 20 |ibility |testing |
|00002950| 66 6f 72 20 4c 61 73 65 | 72 53 68 61 72 65 20 28 |for Lase|rShare (|
|00002960| 41 70 70 6c 65 d5 73 20 | 4c 61 73 65 72 57 72 69 |Apple.s |LaserWri|
|00002970| 74 65 72 20 73 70 6f 6f | 6c 65 72 29 20 68 61 73 |ter spoo|ler) has|
|00002980| 20 74 75 72 6e 65 64 20 | 75 70 20 61 20 6e 75 6d | turned |up a num|
|00002990| 62 65 72 20 6f 66 20 61 | 70 70 6c 69 63 61 74 69 |ber of a|pplicati|
|000029a0| 6f 6e 73 20 74 68 61 74 | 20 64 6f 20 6e 6f 74 20 |ons that| do not |
|000029b0| 70 72 6f 76 69 64 65 20 | 74 68 65 20 50 72 69 6e |provide |the Prin|
|000029c0| 74 69 6e 67 20 4d 61 6e | 61 67 65 72 20 77 69 74 |ting Man|ager wit|
|000029d0| 68 20 61 20 64 6f 63 75 | 6d 65 6e 74 20 6e 61 6d |h a docu|ment nam|
|000029e0| 65 3b 20 61 6c 74 68 6f | 75 67 68 20 74 68 69 73 |e; altho|ugh this|
|000029f0| 20 66 65 61 74 75 72 65 | 20 69 73 20 6e 6f 74 20 | feature| is not |
|00002a00| 72 65 71 75 69 72 65 64 | 2c 20 69 74 20 69 73 20 |required|, it is |
|00002a10| 6e 69 63 65 20 66 6f 72 | 20 75 73 65 72 73 20 74 |nice for| users t|
|00002a20| 68 61 74 20 73 68 61 72 | 65 20 70 72 69 6e 74 65 |hat shar|e printe|
|00002a30| 72 73 2e 0d 53 6f 6d 65 | 20 70 72 69 6e 74 65 72 |rs..Some| printer|
|00002a40| 73 20 28 75 73 75 61 6c | 6c 79 20 74 68 6f 73 65 |s (usual|ly those|
|00002a50| 20 74 68 61 74 20 61 72 | 65 20 73 68 61 72 65 64 | that ar|e shared|
|00002a60| 20 62 65 74 77 65 65 6e | 20 6d 61 6e 79 20 75 73 | between| many us|
|00002a70| 65 72 73 2c 20 6c 69 6b | 65 20 74 68 65 20 4c 61 |ers, lik|e the La|
|00002a80| 73 65 72 57 72 69 74 65 | 72 29 20 63 61 6e 20 70 |serWrite|r) can p|
|00002a90| 72 6f 76 69 64 65 20 74 | 68 65 20 6e 61 6d 65 73 |rovide t|he names|
|00002aa0| 20 6f 66 20 74 68 65 20 | 75 73 65 72 73 20 77 68 | of the |users wh|
|00002ab0| 6f 20 61 72 65 20 70 72 | 69 6e 74 69 6e 67 20 61 |o are pr|inting a|
|00002ac0| 6e 64 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 73 |nd the d|ocuments|
|00002ad0| 20 74 68 61 74 20 61 72 | 65 20 62 65 69 6e 67 20 | that ar|e being |
|00002ae0| 70 72 69 6e 74 65 64 20 | 74 6f 20 6f 74 68 65 72 |printed |to other|
|00002af0| 73 20 69 6e 74 65 72 65 | 73 74 65 64 20 69 6e 20 |s intere|sted in |
|00002b00| 75 73 69 6e 67 20 74 68 | 65 20 70 72 69 6e 74 65 |using th|e printe|
|00002b10| 72 2e 20 0d 49 66 20 74 | 68 65 20 63 68 6f 73 65 |r. .If t|he chose|
|00002b20| 6e 20 70 72 69 6e 74 65 | 72 20 75 73 65 73 20 61 |n printe|r uses a|
|00002b30| 20 64 6f 63 75 6d 65 6e | 74 20 6e 61 6d 65 2c 20 | documen|t name, |
|00002b40| 74 68 65 20 50 72 69 6e | 74 69 6e 67 20 4d 61 6e |the Prin|ting Man|
|00002b50| 61 67 65 72 20 67 65 74 | 73 20 74 68 65 20 6e 61 |ager get|s the na|
|00002b60| 6d 65 20 66 72 6f 6d 20 | 74 68 65 20 66 72 6f 6e |me from |the fron|
|00002b70| 74 6d 6f 73 74 20 77 69 | 6e 64 6f 77 d5 73 20 74 |tmost wi|ndow.s t|
|00002b80| 69 74 6c 65 2e 20 49 66 | 20 74 68 65 72 65 20 69 |itle. If| there i|
|00002b90| 73 20 6e 6f 20 66 72 6f | 6e 74 20 77 69 6e 64 6f |s no fro|nt windo|
|00002ba0| 77 2c 20 6f 72 20 69 66 | 20 74 68 65 20 77 69 6e |w, or if| the win|
|00002bb0| 64 6f 77 d5 73 20 74 69 | 74 6c 65 20 69 73 20 65 |dow.s ti|tle is e|
|00002bc0| 6d 70 74 79 2c 20 74 68 | 65 20 50 72 69 6e 74 69 |mpty, th|e Printi|
|00002bd0| 6e 67 20 4d 61 6e 61 67 | 65 72 20 64 65 66 61 75 |ng Manag|er defau|
|00002be0| 6c 74 73 20 74 6f 20 d2 | 75 6e 6b 6e 6f 77 6e 2e |lts to .|unknown.|
|00002bf0| d3 0d 54 68 69 73 20 6d | 65 74 68 6f 64 20 77 61 |..This m|ethod wa|
|00002c00| 73 20 63 68 6f 73 65 6e | 20 62 65 63 61 75 73 65 |s chosen| because|
|00002c10| 20 69 74 20 77 6f 72 6b | 73 20 6d 6f 73 74 20 74 | it work|s most t|
|00002c20| 72 61 6e 73 70 61 72 65 | 6e 74 6c 79 20 74 6f 20 |ranspare|ntly to |
|00002c30| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 3b 20 68 6f |applicat|ions; ho|
|00002c40| 77 65 76 65 72 2c 20 69 | 74 20 77 6f 6e d5 74 20 |wever, i|t won.t |
|00002c50| 77 6f 72 6b 20 69 66 20 | 79 6f 75 72 20 61 70 70 |work if |your app|
|00002c60| 6c 69 63 61 74 69 6f 6e | 20 64 6f 65 73 6e d5 74 |lication| doesn.t|
|00002c70| 20 64 69 73 70 6c 61 79 | 20 77 69 6e 64 6f 77 73 | display| windows|
|00002c80| 20 77 68 65 6e 20 70 72 | 69 6e 74 69 6e 67 20 28 | when pr|inting (|
|00002c90| 66 6f 72 20 69 6e 73 74 | 61 6e 63 65 2c 20 6d 61 |for inst|ance, ma|
|00002ca0| 6e 79 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |ny appli|cations |
|00002cb0| 74 68 61 74 20 75 73 65 | 20 77 69 6e 64 6f 77 73 |that use| windows|
|00002cc0| 20 66 6f 72 20 74 68 65 | 69 72 20 64 6f 63 75 6d | for the|ir docum|
|00002cd0| 65 6e 74 73 20 64 6f 20 | 6e 6f 74 20 6f 70 65 6e |ents do |not open|
|00002ce0| 20 74 68 65 69 72 20 64 | 6f 63 75 6d 65 6e 74 73 | their d|ocuments|
|00002cf0| 20 77 68 65 6e 20 70 72 | 69 6e 74 69 6e 67 20 69 | when pr|inting i|
|00002d00| 6e 20 72 65 73 70 6f 6e | 73 65 20 74 6f 20 61 20 |n respon|se to a |
|00002d10| 46 69 6e 64 65 72 20 d2 | 50 72 69 6e 74 d3 20 63 |Finder .|Print. c|
|00002d20| 6f 6d 6d 61 6e 64 29 2e | 0d 41 73 20 61 20 67 65 |ommand).|.As a ge|
|00002d30| 6e 65 72 61 6c 20 73 6f | 6c 75 74 69 6f 6e 20 74 |neral so|lution t|
|00002d40| 6f 20 74 68 69 73 20 70 | 72 6f 62 6c 65 6d 2c 20 |o this p|roblem, |
|00002d50| 79 6f 75 20 63 61 6e 20 | 70 75 74 20 75 70 20 61 |you can |put up a|
|00002d60| 20 77 69 6e 64 6f 77 20 | 63 6f 6e 74 61 69 6e 69 | window |containi|
|00002d70| 6e 67 20 61 20 6d 65 73 | 73 61 67 65 20 6c 69 6b |ng a mes|sage lik|
|00002d80| 65 20 d2 50 72 65 73 73 | 20 11 d0 2e 20 74 6f 20 |e .Press| ... to |
|00002d90| 63 61 6e 63 65 6c 20 70 | 72 69 6e 74 69 6e 67 d3 |cancel p|rinting.|
|00002da0| 2c 20 61 6e 64 20 67 69 | 76 65 20 69 74 20 74 68 |, and gi|ve it th|
|00002db0| 65 20 64 6f 63 75 6d 65 | 6e 74 d5 73 20 74 69 74 |e docume|nt.s tit|
|00002dc0| 6c 65 2e 20 49 66 20 74 | 68 65 20 77 69 6e 64 6f |le. If t|he windo|
|00002dd0| 77 20 20 69 73 20 6f 6e | 65 20 74 68 61 74 20 64 |w is on|e that d|
|00002de0| 6f 65 73 6e d5 74 20 68 | 61 76 65 20 61 20 74 69 |oesn.t h|ave a ti|
|00002df0| 74 6c 65 20 62 61 72 20 | 28 6c 69 6b 65 20 64 42 |tle bar |(like dB|
|00002e00| 6f 78 50 72 6f 63 29 2c | 20 74 68 69 73 20 74 69 |oxProc),| this ti|
|00002e10| 74 6c 65 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 |tle will| not be |
|00002e20| 64 69 73 70 6c 61 79 65 | 64 2e 20 4d 61 63 41 70 |displaye|d. MacAp|
|00002e30| 70 20 74 61 6b 65 73 20 | 74 68 69 73 20 61 70 70 |p takes |this app|
|00002e40| 72 6f 61 63 68 2e 20 49 | 66 20 66 6f 72 20 73 6f |roach. I|f for so|
|00002e50| 6d 65 20 72 65 61 73 6f | 6e 20 79 6f 75 20 64 6f |me reaso|n you do|
|00002e60| 6e d5 74 20 77 61 6e 74 | 20 74 6f 20 70 75 74 20 |n.t want| to put |
|00002e70| 75 70 20 61 20 76 69 73 | 69 62 6c 65 20 77 69 6e |up a vis|ible win|
|00002e80| 64 6f 77 2c 20 79 6f 75 | 20 63 61 6e 20 63 72 65 |dow, you| can cre|
|00002e90| 61 74 65 20 61 20 74 69 | 6e 79 20 77 69 6e 64 6f |ate a ti|ny windo|
|00002ea0| 77 20 61 6e 64 20 68 69 | 64 65 20 69 74 20 62 65 |w and hi|de it be|
|00002eb0| 68 69 6e 64 20 74 68 65 | 20 6d 65 6e 75 20 62 61 |hind the| menu ba|
|00002ec0| 72 3a 20 66 6f 72 20 69 | 6e 73 74 61 6e 63 65 2c |r: for i|nstance,|
|00002ed0| 20 67 6c 6f 62 61 6c 20 | 63 6f 6f 72 64 69 6e 61 | global |coordina|
|00002ee0| 74 65 73 20 6f 66 20 28 | 31 2c 31 2c 32 2c 32 29 |tes of (|1,1,2,2)|
|00002ef0| 2e 20 4d 61 6b 65 20 73 | 75 72 65 20 79 6f 75 20 |. Make s|ure you |
|00002f00| 75 73 65 20 61 20 70 6c | 61 69 6e 44 42 6f 78 2c |use a pl|ainDBox,|
|00002f10| 20 73 6f 20 74 68 61 74 | 20 6e 6f 20 74 69 74 6c | so that| no titl|
|00002f20| 65 20 77 69 6c 6c 20 62 | 65 20 64 72 61 77 6e 20 |e will b|e drawn |
|00002f30| 28 6f 74 68 65 72 77 69 | 73 65 2c 20 69 6e 20 74 |(otherwi|se, in t|
|00002f40| 68 65 20 75 6e 6c 69 6b | 65 6c 79 20 63 61 73 65 |he unlik|ely case|
|00002f50| 20 74 68 61 74 20 61 20 | 75 73 65 72 20 69 73 20 | that a |user is |
|00002f60| 75 73 69 6e 67 20 61 20 | 4d 61 63 69 6e 74 6f 73 |using a |Macintos|
|00002f70| 68 20 49 49 20 77 69 74 | 68 20 74 77 6f 20 73 74 |h II wit|h two st|
|00002f80| 61 63 6b 65 64 20 73 63 | 72 65 65 6e 73 2c 20 6d |acked sc|reens, m|
|00002f90| 61 69 6e 20 73 63 72 65 | 65 6e 20 6f 6e 20 74 68 |ain scre|en on th|
|00002fa0| 65 20 62 6f 74 74 6f 6d | 2c 20 74 68 65 20 74 69 |e bottom|, the ti|
|00002fb0| 74 6c 65 20 6d 69 67 68 | 74 20 62 65 20 76 69 73 |tle migh|t be vis|
|00002fc0| 69 62 6c 65 20 6f 6e 20 | 74 68 65 20 75 70 70 65 |ible on |the uppe|
|00002fd0| 72 20 73 63 72 65 65 6e | 29 2e 0d 53 69 6e 63 65 |r screen|)..Since|
|00002fe0| 20 74 68 65 20 50 72 69 | 6e 74 69 6e 67 20 4d 61 | the Pri|nting Ma|
|00002ff0| 6e 61 67 65 72 20 63 68 | 65 63 6b 73 20 74 68 65 |nager ch|ecks the|
|00003000| 20 6e 61 6d 65 20 61 74 | 20 50 72 56 61 6c 69 64 | name at| PrValid|
|00003010| 61 74 65 20 74 69 6d 65 | 2c 20 63 61 6c 6c 20 50 |ate time|, call P|
|00003020| 72 56 61 6c 69 64 61 74 | 65 20 61 66 74 65 72 20 |rValidat|e after |
|00003030| 50 72 43 6c 6f 73 65 44 | 6f 63 20 61 6e 64 20 62 |PrCloseD|oc and b|
|00003040| 65 66 6f 72 65 20 74 68 | 65 20 6e 65 78 74 20 50 |efore th|e next P|
|00003050| 72 4f 70 65 6e 44 6f 63 | 2c 20 69 66 20 79 6f 75 |rOpenDoc|, if you|
|00003060| 20 77 61 6e 74 20 75 6e | 69 71 75 65 20 6e 61 6d | want un|ique nam|
|00003070| 65 73 2e 20 0d 41 20 6e | 75 6d 62 65 72 20 6f 66 |es. .A n|umber of|
|00003080| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 73 65 | applica|tions se|
|00003090| 74 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 6e |t the do|cument n|
|000030a0| 61 6d 65 20 69 6e 20 74 | 68 65 20 70 72 69 6e 74 |ame in t|he print|
|000030b0| 20 72 65 63 6f 72 64 20 | 64 69 72 65 63 74 6c 79 | record |directly|
|000030c0| 2e 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 6e 6f 74 |. You sh|ould not|
|000030d0| 20 64 6f 20 74 68 69 73 | 20 62 65 63 61 75 73 65 | do this| because|
|000030e0| 20 61 29 20 6e 6f 74 20 | 61 6c 6c 20 70 72 69 6e | a) not |all prin|
|000030f0| 74 65 72 73 20 73 75 70 | 70 6f 72 74 20 74 68 69 |ters sup|port thi|
|00003100| 73 20 66 69 65 6c 64 2c | 20 61 6e 64 20 62 29 20 |s field,| and b) |
|00003110| 6e 6f 6e 65 20 61 72 65 | 20 67 75 61 72 61 6e 74 |none are| guarant|
|00003120| 65 65 64 20 74 6f 20 73 | 75 70 70 6f 72 74 20 69 |eed to s|upport i|
|00003130| 74 20 69 6e 20 74 68 65 | 20 66 75 74 75 72 65 2e |t in the| future.|
|00003140| 20 28 41 70 70 6c 65 20 | 64 6f 65 73 20 6e 6f 74 | (Apple |does not|
|00003150| 20 67 75 61 72 61 6e 74 | 65 65 20 74 68 61 74 20 | guarant|ee that |
|00003160| 69 6e 74 65 72 6e 61 6c | 20 66 69 65 6c 64 73 20 |internal| fields |
|00003170| 6f 66 20 74 68 65 20 50 | 72 69 6e 74 69 6e 67 20 |of the P|rinting |
|00003180| 4d 61 6e 61 67 65 72 d5 | 73 20 64 61 74 61 20 73 |Manager.|s data s|
|00003190| 74 72 75 63 74 75 72 65 | 73 20 77 69 6c 6c 20 72 |tructure|s will r|
|000031a0| 65 6d 61 69 6e 20 74 68 | 65 20 73 61 6d 65 3b 20 |emain th|e same; |
|000031b0| 74 68 65 20 50 72 69 6e | 74 69 6e 67 20 4d 61 6e |the Prin|ting Man|
|000031c0| 61 67 65 72 20 69 73 20 | 74 61 72 67 65 74 65 64 |ager is |targeted|
|000031d0| 20 66 6f 72 20 73 75 62 | 73 74 61 6e 74 69 61 6c | for sub|stantial|
|000031e0| 20 69 6e 74 65 72 6e 61 | 6c 20 63 68 61 6e 67 65 | interna|l change|
|000031f0| 21 29 0d 46 75 72 74 68 | 65 72 20 52 65 66 65 72 |!).Furth|er Refer|
|00003200| 65 6e 63 65 3a 0d a5 09 | 54 68 65 20 50 72 69 6e |ence:...|The Prin|
|00003210| 74 69 6e 67 20 4d 61 6e | 61 67 65 72 0d a5 09 54 |ting Man|ager...T|
|00003220| 65 63 68 6e 69 63 61 6c | 20 4e 6f 74 65 20 4d 2e |echnical| Note M.|
|00003230| 49 4d 2e 44 65 76 49 6e | 64 50 72 69 6e 74 69 6e |IM.DevIn|dPrintin|
|00003240| 67 d1 20 44 65 76 69 63 | 65 2d 49 6e 64 65 70 65 |g. Devic|e-Indepe|
|00003250| 6e 64 65 6e 74 20 50 72 | 69 6e 74 69 6e 67 0d 46 |ndent Pr|inting.F|
|00003260| 65 65 64 65 72 20 46 6f | 64 64 65 72 0d 49 6d 61 |eeder Fo|dder.Ima|
|00003270| 67 69 6e 67 09 4d 2e 49 | 4d 2e 46 65 65 64 65 72 |ging.M.I|M.Feeder|
|00003280| 0d 57 72 69 74 74 65 6e | 20 62 79 3a 09 5a 7a 20 |.Written| by:.Zz |
|00003290| 5a 69 6d 6d 65 72 6d 61 | 6e 09 41 70 72 69 6c 20 |Zimmerma|n.April |
|000032a0| 31 39 39 31 0d 54 68 69 | 73 20 54 65 63 68 6e 69 |1991.Thi|s Techni|
|000032b0| 63 61 6c 20 4e 6f 74 65 | 20 64 69 73 63 75 73 73 |cal Note| discuss|
|000032c0| 65 73 20 74 68 65 20 6e | 65 77 20 46 65 65 64 65 |es the n|ew Feede|
|000032d0| 72 20 62 75 74 74 6f 6e | 20 61 76 61 69 6c 61 62 |r button| availab|
|000032e0| 6c 65 20 69 6e 20 74 68 | 65 20 36 2e 31 2c 20 61 |le in th|e 6.1, a|
|000032f0| 6e 64 20 37 2e 30 20 76 | 65 72 73 69 6f 6e 73 20 |nd 7.0 v|ersions |
|00003300| 6f 66 20 74 68 65 20 4c | 61 73 65 72 57 72 69 74 |of the L|aserWrit|
|00003310| 65 72 20 64 72 69 76 65 | 72 2e 20 20 54 68 69 73 |er drive|r. This|
|00003320| 20 46 65 65 64 65 72 20 | 62 75 74 74 6f 6e 20 6d | Feeder |button m|
|00003330| 65 63 68 61 6e 69 73 6d | 20 61 6c 6c 6f 77 73 20 |echanism| allows |
|00003340| 64 65 76 65 6c 6f 70 65 | 72 73 20 74 6f 20 69 6e |develope|rs to in|
|00003350| 73 65 72 74 20 63 6f 64 | 65 20 69 6e 74 6f 20 74 |sert cod|e into t|
|00003360| 68 65 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 64 |he Laser|Writer d|
|00003370| 72 69 76 65 72 20 74 6f | 20 73 75 70 70 6f 72 74 |river to| support|
|00003380| 20 61 20 73 68 65 65 74 | 20 66 65 65 64 65 72 20 | a sheet| feeder |
|00003390| 63 6f 6e 6e 65 63 74 65 | 64 20 74 6f 20 61 20 4c |connecte|d to a L|
|000033a0| 61 73 65 72 57 72 69 74 | 65 72 2e 20 20 54 68 69 |aserWrit|er. Thi|
|000033b0| 73 20 4e 6f 74 65 20 70 | 72 6f 76 69 64 65 73 20 |s Note p|rovides |
|000033c0| 61 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |a descri|ption of|
|000033d0| 20 74 68 65 20 62 75 74 | 74 6f 6e 2c 20 61 73 20 | the but|ton, as |
|000033e0| 77 65 6c 6c 20 61 73 20 | 69 6e 66 6f 72 6d 61 74 |well as |informat|
|000033f0| 69 6f 6e 20 72 65 71 75 | 69 72 65 64 20 74 6f 20 |ion requ|ired to |
|00003400| 69 6d 70 6c 65 6d 65 6e | 74 20 6f 6e 65 2e 0d 49 |implemen|t one..I|
|00003410| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 0d 54 68 65 20 |ntroduct|ion.The |
|00003420| 4c 61 73 65 72 57 72 69 | 74 65 72 20 64 72 69 76 |LaserWri|ter driv|
|00003430| 65 72 20 6e 6f 77 20 69 | 6d 70 6c 65 6d 65 6e 74 |er now i|mplement|
|00003440| 73 20 61 20 73 74 61 6e | 64 61 72 64 20 6d 65 74 |s a stan|dard met|
|00003450| 68 6f 64 20 66 6f 72 20 | 68 61 6e 64 6c 69 6e 67 |hod for |handling|
|00003460| 20 73 68 65 65 74 20 66 | 65 65 64 65 72 73 2e 20 | sheet f|eeders. |
|00003470| 20 4d 6f 73 74 20 4c 61 | 73 65 72 57 72 69 74 65 | Most La|serWrite|
|00003480| 72 20 73 68 65 65 74 20 | 66 65 65 64 65 72 73 20 |r sheet |feeders |
|00003490| 6e 65 65 64 20 61 20 77 | 61 79 20 74 6f 20 70 72 |need a w|ay to pr|
|000034a0| 65 73 65 6e 74 20 61 20 | 75 73 65 72 20 77 69 74 |esent a |user wit|
|000034b0| 68 20 61 20 64 69 61 6c | 6f 67 20 61 73 20 77 65 |h a dial|og as we|
|000034c0| 6c 6c 20 61 73 20 61 20 | 77 61 79 20 74 6f 20 64 |ll as a |way to d|
|000034d0| 6f 77 6e 6c 6f 61 64 20 | 74 68 65 20 50 6f 73 74 |ownload |the Post|
|000034e0| 53 63 72 69 70 74 a8 20 | 63 6f 64 65 20 6e 65 63 |Script. |code nec|
|000034f0| 65 73 73 61 72 79 20 74 | 6f 20 63 6f 6e 74 72 6f |essary t|o contro|
|00003500| 6c 20 74 68 65 20 66 65 | 65 64 65 72 2e 20 20 49 |l the fe|eder. I|
|00003510| 6e 20 74 68 65 20 70 61 | 73 74 2c 20 6d 6f 73 74 |n the pa|st, most|
|00003520| 20 6d 61 6e 75 66 61 63 | 74 75 72 65 72 73 20 72 | manufac|turers r|
|00003530| 65 73 6f 72 74 65 64 20 | 74 6f 20 6d 6f 64 69 66 |esorted |to modif|
|00003540| 79 69 6e 67 20 74 68 65 | 20 4c 61 73 65 72 57 72 |ying the| LaserWr|
|00003550| 69 74 65 72 20 64 72 69 | 76 65 72 d5 73 20 63 6f |iter dri|ver.s co|
|00003560| 64 65 20 72 65 73 6f 75 | 72 63 65 73 3b 20 68 6f |de resou|rces; ho|
|00003570| 77 65 76 65 72 2c 20 74 | 68 69 73 20 66 75 6e 63 |wever, t|his func|
|00003580| 74 69 6f 6e 61 6c 69 74 | 79 20 69 73 20 6e 6f 77 |tionalit|y is now|
|00003590| 20 70 6f 73 73 69 62 6c | 65 20 77 69 74 68 6f 75 | possibl|e withou|
|000035a0| 74 20 74 68 65 20 6e 65 | 65 64 20 74 6f 20 70 61 |t the ne|ed to pa|
|000035b0| 74 63 68 20 65 78 69 73 | 74 69 6e 67 20 72 65 73 |tch exis|ting res|
|000035c0| 6f 75 72 63 65 73 20 69 | 6e 20 74 68 65 20 64 72 |ources i|n the dr|
|000035d0| 69 76 65 72 d1 62 79 20 | 61 64 64 69 6e 67 20 74 |iver.by |adding t|
|000035e0| 68 72 65 65 20 6e 65 77 | 20 72 65 73 6f 75 72 63 |hree new| resourc|
|000035f0| 65 73 2e 0d 57 68 65 6e | 20 74 68 65 20 4c 61 73 |es..When| the Las|
|00003600| 65 72 57 72 69 74 65 72 | 20 64 72 69 76 65 72 20 |erWriter| driver |
|00003610| 6e 6f 74 69 63 65 73 20 | 74 68 65 73 65 20 74 68 |notices |these th|
|00003620| 72 65 65 20 73 70 65 63 | 69 61 6c 20 72 65 73 6f |ree spec|ial reso|
|00003630| 75 72 63 65 73 20 69 6e | 20 69 74 73 20 72 65 73 |urces in| its res|
|00003640| 6f 75 72 63 65 20 66 6f | 72 6b 2c 20 69 74 20 64 |ource fo|rk, it d|
|00003650| 69 73 70 6c 61 79 73 20 | 61 20 46 65 65 64 65 72 |isplays |a Feeder|
|00003660| 20 62 75 74 74 6f 6e 20 | 69 6e 20 74 68 65 20 6c | button |in the l|
|00003670| 6f 77 65 72 20 72 69 67 | 68 74 20 63 6f 72 6e 65 |ower rig|ht corne|
|00003680| 72 20 6f 66 20 74 68 65 | 20 50 72 69 6e 74 20 64 |r of the| Print d|
|00003690| 69 61 6c 6f 67 20 62 6f | 78 2e 20 20 49 74 20 69 |ialog bo|x. It i|
|000036a0| 73 20 69 6d 70 6f 72 74 | 61 6e 74 20 74 6f 20 6e |s import|ant to n|
|000036b0| 6f 74 65 20 74 68 61 74 | 20 74 68 69 73 20 66 65 |ote that| this fe|
|000036c0| 61 74 75 72 65 20 69 73 | 20 6e 6f 74 20 70 72 6f |ature is| not pro|
|000036d0| 76 69 64 65 64 20 66 6f | 72 20 67 65 6e 65 72 61 |vided fo|r genera|
|000036e0| 6c 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 75 73 |l applic|ation us|
|000036f0| 65 2c 20 62 75 74 20 72 | 61 74 68 65 72 20 6f 6e |e, but r|ather on|
|00003700| 6c 79 20 66 6f 72 20 64 | 65 76 65 6c 6f 70 65 72 |ly for d|eveloper|
|00003710| 73 20 6f 66 20 73 68 65 | 65 74 20 66 65 65 64 65 |s of she|et feede|
|00003720| 72 73 20 61 6e 64 20 6f | 74 68 65 72 20 4c 61 73 |rs and o|ther Las|
|00003730| 65 72 57 72 69 74 65 72 | 20 61 64 64 2d 6f 6e 20 |erWriter| add-on |
|00003740| 64 65 76 69 63 65 73 2e | 20 20 54 68 65 20 62 75 |devices.| The bu|
|00003750| 74 74 6f 6e 20 69 73 20 | 61 6c 77 61 79 73 20 6c |tton is |always l|
|00003760| 61 62 65 6c 65 64 20 46 | 65 65 64 65 72 2c 20 61 |abeled F|eeder, a|
|00003770| 6e 64 20 74 68 65 72 65 | 20 63 61 6e 20 62 65 20 |nd there| can be |
|00003780| 6f 6e 6c 79 20 6f 6e 65 | 20 73 65 74 20 6f 66 20 |only one| set of |
|00003790| 46 65 65 64 65 72 20 72 | 65 73 6f 75 72 63 65 73 |Feeder r|esources|
|000037a0| 20 69 6e 20 74 68 65 20 | 4c 61 73 65 72 57 72 69 | in the |LaserWri|
|000037b0| 74 65 72 20 64 72 69 76 | 65 72 2e 20 20 42 65 63 |ter driv|er. Bec|
|000037c0| 61 75 73 65 20 6f 66 20 | 74 68 69 73 20 72 65 73 |ause of |this res|
|000037d0| 74 72 69 63 74 69 6f 6e | 2c 20 79 6f 75 20 73 68 |triction|, you sh|
|000037e0| 6f 75 6c 64 20 6e 6f 74 | 20 61 74 74 65 6d 70 74 |ould not| attempt|
|000037f0| 20 74 6f 20 75 73 65 20 | 74 68 69 73 20 66 65 61 | to use |this fea|
|00003800| 74 75 72 65 20 74 6f 20 | 69 6d 70 6c 65 6d 65 6e |ture to |implemen|
|00003810| 74 20 61 6e 79 74 68 69 | 6e 67 20 6f 74 68 65 72 |t anythi|ng other|
|00003820| 20 74 68 61 6e 20 61 20 | 73 68 65 65 74 20 66 65 | than a |sheet fe|
|00003830| 65 64 65 72 2e 0d 54 68 | 65 20 66 69 72 73 74 20 |eder..Th|e first |
|00003840| 73 70 65 63 69 61 6c 20 | 72 65 73 6f 75 72 63 65 |special |resource|
|00003850| 20 63 6f 6e 74 61 69 6e | 73 20 63 6f 64 65 20 74 | contain|s code t|
|00003860| 6f 20 69 6d 70 6c 65 6d | 65 6e 74 20 74 68 65 20 |o implem|ent the |
|00003870| 75 73 65 72 20 69 6e 74 | 65 72 66 61 63 65 20 6f |user int|erface o|
|00003880| 66 20 74 68 65 20 66 65 | 65 64 65 72 2c 20 61 6e |f the fe|eder, an|
|00003890| 64 20 74 68 65 20 6f 74 | 68 65 72 20 74 77 6f 20 |d the ot|her two |
|000038a0| 63 6f 6e 74 61 69 6e 20 | 74 68 65 20 50 6f 73 74 |contain |the Post|
|000038b0| 53 63 72 69 70 74 20 63 | 6f 64 65 20 72 65 71 75 |Script c|ode requ|
|000038c0| 69 72 65 64 20 74 6f 20 | 64 72 69 76 65 20 74 68 |ired to |drive th|
|000038d0| 65 20 66 65 65 64 65 72 | 2e 20 20 57 68 65 6e 20 |e feeder|. When |
|000038e0| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 63 |an appli|cation c|
|000038f0| 61 6c 6c 73 20 74 68 65 | 20 4c 61 73 65 72 57 72 |alls the| LaserWr|
|00003900| 69 74 65 72 20 64 72 69 | 76 65 72 20 74 6f 20 64 |iter dri|ver to d|
|00003910| 69 73 70 6c 61 79 20 74 | 68 65 20 50 72 69 6e 74 |isplay t|he Print|
|00003920| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2c 20 74 68 65 | dialog |box, the|
|00003930| 20 64 72 69 76 65 72 20 | 6c 6f 6f 6b 73 20 66 6f | driver |looks fo|
|00003940| 72 20 74 68 72 65 65 20 | 72 65 73 6f 75 72 63 65 |r three |resource|
|00003950| 73 20 6f 66 20 74 79 70 | 65 20 27 66 65 65 64 27 |s of typ|e 'feed'|
|00003960| 20 61 6e 64 20 64 69 73 | 70 6c 61 79 73 20 74 68 | and dis|plays th|
|00003970| 65 20 46 65 65 64 65 72 | 20 62 75 74 74 6f 6e 20 |e Feeder| button |
|00003980| 69 6e 20 74 68 65 20 6c | 6f 77 65 72 20 72 69 67 |in the l|ower rig|
|00003990| 68 74 20 63 6f 72 6e 65 | 72 20 6f 66 20 74 68 65 |ht corne|r of the|
|000039a0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 20 69 66 20 74 | dialog |box if t|
|000039b0| 68 65 79 20 61 72 65 20 | 66 6f 75 6e 64 2e 20 20 |hey are |found. |
|000039c0| 49 66 20 6e 6f 20 27 66 | 65 65 64 27 20 72 65 73 |If no 'f|eed' res|
|000039d0| 6f 75 72 63 65 73 20 61 | 72 65 20 61 76 61 69 6c |ources a|re avail|
|000039e0| 61 62 6c 65 2c 20 69 74 | 20 64 6f 65 73 20 6e 6f |able, it| does no|
|000039f0| 74 20 64 69 73 70 6c 61 | 79 20 74 68 65 20 46 65 |t displa|y the Fe|
|00003a00| 65 64 65 72 20 62 75 74 | 74 6f 6e 2e 0d 57 68 65 |eder but|ton..Whe|
|00003a10| 6e 20 61 20 75 73 65 72 | 20 73 65 6c 65 63 74 73 |n a user| selects|
|00003a20| 20 50 72 69 6e 74 2c 20 | 74 68 65 20 64 72 69 76 | Print, |the driv|
|00003a30| 65 72 20 64 69 73 70 6c | 61 79 73 20 74 68 65 20 |er displ|ays the |
|00003a40| 73 74 61 6e 64 61 72 64 | 20 50 72 69 6e 74 20 64 |standard| Print d|
|00003a50| 69 61 6c 6f 67 20 62 6f | 78 20 77 69 74 68 20 74 |ialog bo|x with t|
|00003a60| 68 65 20 46 65 65 64 65 | 72 20 62 75 74 74 6f 6e |he Feede|r button|
|00003a70| 2e 20 20 49 66 20 61 20 | 75 73 65 72 20 63 6c 69 |. If a |user cli|
|00003a80| 63 6b 73 20 6f 6e 20 74 | 68 65 20 46 65 65 64 65 |cks on t|he Feede|
|00003a90| 72 20 62 75 74 74 6f 6e | 2c 20 74 68 65 20 64 72 |r button|, the dr|
|00003aa0| 69 76 65 72 20 64 69 73 | 70 6c 61 79 73 20 61 20 |iver dis|plays a |
|00003ab0| 64 69 61 6c 6f 67 20 62 | 6f 78 20 69 6e 20 66 72 |dialog b|ox in fr|
|00003ac0| 6f 6e 74 20 6f 66 20 74 | 68 65 20 50 72 69 6e 74 |ont of t|he Print|
|00003ad0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 2c 20 77 68 69 | dialog |box, whi|
|00003ae0| 63 68 20 61 6c 6c 6f 77 | 73 20 74 68 65 20 75 73 |ch allow|s the us|
|00003af0| 65 72 20 74 6f 20 63 6f | 6e 66 69 67 75 72 65 20 |er to co|nfigure |
|00003b00| 74 68 65 20 66 65 65 64 | 65 72 2c 20 74 68 65 6e |the feed|er, then|
|00003b10| 20 72 65 74 75 72 6e 73 | 20 74 6f 20 74 68 65 20 | returns| to the |
|00003b20| 50 72 69 6e 74 20 64 69 | 61 6c 6f 67 20 62 6f 78 |Print di|alog box|
|00003b30| 20 6f 6e 63 65 20 74 68 | 65 20 75 73 65 72 20 63 | once th|e user c|
|00003b40| 6f 6e 66 69 72 6d 73 20 | 6f 72 20 63 61 6e 63 65 |onfirms |or cance|
|00003b50| 6c 73 20 74 68 65 20 66 | 65 65 64 65 72 20 63 6f |ls the f|eeder co|
|00003b60| 6e 66 69 67 75 72 61 74 | 69 6f 6e 2e 20 20 54 68 |nfigurat|ion. Th|
|00003b70| 69 73 20 66 65 65 64 65 | 72 20 64 69 61 6c 6f 67 |is feede|r dialog|
|00003b80| 20 62 6f 78 20 73 68 6f | 75 6c 64 20 6e 6f 74 20 | box sho|uld not |
|00003b90| 63 6f 6e 74 61 69 6e 20 | 61 6e 20 6f 70 74 69 6f |contain |an optio|
|00003ba0| 6e 20 74 6f 20 70 72 69 | 6e 74 2c 20 61 73 20 74 |n to pri|nt, as t|
|00003bb0| 68 69 73 20 63 6f 75 6c | 64 20 6f 76 65 72 72 69 |his coul|d overri|
|00003bc0| 64 65 20 63 68 6f 69 63 | 65 73 20 6d 61 64 65 20 |de choic|es made |
|00003bd0| 69 6e 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |in the s|tandard |
|00003be0| 50 72 69 6e 74 20 64 69 | 61 6c 6f 67 20 62 6f 78 |Print di|alog box|
|00003bf0| 2e 0d 49 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |..Implem|entation|
|00003c00| 0d 54 6f 20 68 61 6e 64 | 6c 65 20 69 6e 74 65 72 |.To hand|le inter|
|00003c10| 61 63 74 69 6f 6e 20 77 | 69 74 68 20 74 68 65 20 |action w|ith the |
|00003c20| 75 73 65 72 2c 20 79 6f | 75 20 6d 75 73 74 20 69 |user, yo|u must i|
|00003c30| 6e 73 74 61 6c 6c 20 61 | 20 72 65 73 6f 75 72 63 |nstall a| resourc|
|00003c40| 65 20 6f 66 20 74 79 70 | 65 20 27 66 65 65 64 27 |e of typ|e 'feed'|
|00003c50| 20 28 49 44 20 3d 20 2d | 38 31 39 32 29 20 69 6e | (ID = -|8192) in|
|00003c60| 74 6f 20 74 68 65 20 4c | 61 73 65 72 57 72 69 74 |to the L|aserWrit|
|00003c70| 65 72 20 64 72 69 76 65 | 72 20 77 69 74 68 20 74 |er drive|r with t|
|00003c80| 68 65 20 63 6f 64 65 20 | 72 65 71 75 69 72 65 64 |he code |required|
|00003c90| 20 74 6f 20 6d 61 6e 61 | 67 65 20 74 68 65 20 64 | to mana|ge the d|
|00003ca0| 69 61 6c 6f 67 20 62 6f | 78 2e 20 20 4c 69 6b 65 |ialog bo|x. Like|
|00003cb0| 20 61 6c 6c 20 50 72 69 | 6e 74 69 6e 67 20 4d 61 | all Pri|nting Ma|
|00003cc0| 6e 61 67 65 72 20 63 6f | 64 65 20 72 65 73 6f 75 |nager co|de resou|
|00003cd0| 72 63 65 73 2c 20 74 68 | 69 73 20 72 65 73 6f 75 |rces, th|is resou|
|00003ce0| 72 63 65 20 62 65 67 69 | 6e 73 20 77 69 74 68 20 |rce begi|ns with |
|00003cf0| 61 20 6a 75 6d 70 20 74 | 61 62 6c 65 2c 20 66 6f |a jump t|able, fo|
|00003d00| 6c 6c 6f 77 65 64 20 62 | 79 20 74 68 65 20 61 63 |llowed b|y the ac|
|00003d10| 74 75 61 6c 20 63 6f 64 | 65 2e 20 20 54 68 65 20 |tual cod|e. The |
|00003d20| 63 6f 64 65 20 69 73 20 | 69 6d 70 6c 65 6d 65 6e |code is |implemen|
|00003d30| 74 65 64 20 61 73 20 61 | 20 70 72 6f 63 65 64 75 |ted as a| procedu|
|00003d40| 72 65 20 74 68 61 74 20 | 69 73 20 70 61 73 73 65 |re that |is passe|
|00003d50| 64 20 61 20 73 69 6e 67 | 6c 65 20 70 61 72 61 6d |d a sing|le param|
|00003d60| 65 74 65 72 2e 20 20 54 | 68 69 73 20 70 61 72 61 |eter. T|his para|
|00003d70| 6d 65 74 65 72 20 69 73 | 20 61 20 72 65 63 74 61 |meter is| a recta|
|00003d80| 6e 67 6c 65 20 64 65 66 | 69 6e 69 6e 67 20 74 68 |ngle def|ining th|
|00003d90| 65 20 70 61 67 65 20 73 | 69 7a 65 20 73 65 6c 65 |e page s|ize sele|
|00003da0| 63 74 65 64 20 62 79 20 | 74 68 65 20 75 73 65 72 |cted by |the user|
|00003db0| 2e 20 20 54 68 69 73 20 | 70 61 67 65 20 73 69 7a |. This |page siz|
|00003dc0| 65 20 69 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |e is equ|ivalent |
|00003dd0| 74 6f 20 74 68 65 20 72 | 50 61 70 65 72 20 72 65 |to the r|Paper re|
|00003de0| 63 74 61 6e 67 6c 65 20 | 69 6e 20 74 68 65 20 70 |ctangle |in the p|
|00003df0| 72 69 6e 74 20 72 65 63 | 6f 72 64 2c 20 6d 65 61 |rint rec|ord, mea|
|00003e00| 6e 69 6e 67 20 69 74 20 | 64 65 66 69 6e 65 73 20 |ning it |defines |
|00003e10| 74 68 65 20 61 63 74 75 | 61 6c 20 70 61 67 65 20 |the actu|al page |
|00003e20| 73 69 7a 65 2c 20 6e 6f | 74 20 6a 75 73 74 20 74 |size, no|t just t|
|00003e30| 68 65 20 70 72 69 6e 74 | 61 62 6c 65 20 61 72 65 |he print|able are|
|00003e40| 61 2e 20 20 54 68 65 20 | 72 65 63 74 61 6e 67 6c |a. The |rectangl|
|00003e50| 65 20 69 73 20 65 78 70 | 72 65 73 73 65 64 20 69 |e is exp|ressed i|
|00003e60| 6e 20 37 32 20 64 70 69 | 20 63 6f 6f 72 64 69 6e |n 72 dpi| coordin|
|00003e70| 61 74 65 73 20 61 6e 64 | 20 68 61 73 20 61 20 6e |ates and| has a n|
|00003e80| 65 67 61 74 69 76 65 20 | 6f 72 69 67 69 6e 2e 0d |egative |origin..|
|00003e90| 47 6f 20 41 68 65 61 64 | 20 61 6e 64 20 4a 75 6d |Go Ahead| and Jum|
|00003ea0| 70 0d 54 68 65 20 6a 75 | 6d 70 20 74 61 62 6c 65 |p.The ju|mp table|
|00003eb0| 20 63 6f 6e 73 69 73 74 | 73 20 6f 66 20 61 20 36 | consist|s of a 6|
|00003ec0| 38 30 30 30 20 4a 4d 50 | 20 69 6e 73 74 72 75 63 |8000 JMP| instruc|
|00003ed0| 74 69 6f 6e 20 74 68 61 | 74 20 6a 75 6d 70 73 20 |tion tha|t jumps |
|00003ee0| 74 6f 20 74 68 65 20 70 | 72 6f 70 65 72 20 6f 66 |to the p|roper of|
|00003ef0| 66 73 65 74 20 69 6e 20 | 74 68 65 20 72 65 73 6f |fset in |the reso|
|00003f00| 75 72 63 65 2e 20 20 49 | 6e 20 74 68 69 73 20 63 |urce. I|n this c|
|00003f10| 61 73 65 2c 20 74 68 65 | 72 65 20 69 73 20 6f 6e |ase, the|re is on|
|00003f20| 6c 79 20 6f 6e 65 20 72 | 6f 75 74 69 6e 65 2c 20 |ly one r|outine, |
|00003f30| 73 6f 20 74 68 65 20 63 | 6f 64 65 20 73 74 61 72 |so the c|ode star|
|00003f40| 74 73 20 69 6d 6d 65 64 | 69 61 74 65 6c 79 20 66 |ts immed|iately f|
|00003f50| 6f 6c 6c 6f 77 69 6e 67 | 20 74 68 65 20 6a 75 6d |ollowing| the jum|
|00003f60| 70 20 74 61 62 6c 65 2e | 20 20 54 6f 20 6d 61 6b |p table.| To mak|
|00003f70| 65 20 74 68 69 73 20 73 | 74 65 70 20 61 75 74 6f |e this s|tep auto|
|00003f80| 6d 61 74 69 63 2c 20 74 | 68 65 20 6a 75 6d 70 20 |matic, t|he jump |
|00003f90| 74 61 62 6c 65 20 69 73 | 20 63 72 65 61 74 65 64 |table is| created|
|00003fa0| 20 75 73 69 6e 67 20 61 | 20 73 6d 61 6c 6c 20 61 | using a| small a|
|00003fb0| 73 73 65 6d 62 6c 79 20 | 6c 61 6e 67 75 61 67 65 |ssembly |language|
|00003fc0| 20 68 65 61 64 65 72 3a | 0d 09 09 49 4d 50 4f 52 | header:|...IMPOR|
|00003fd0| 54 09 46 65 65 64 65 72 | 09 09 3b 20 46 65 65 64 |T.Feeder|..; Feed|
|00003fe0| 65 72 20 69 73 20 4e 4f | 54 20 64 65 66 69 6e 65 |er is NO|T define|
|00003ff0| 64 20 68 65 72 65 2e 2e | 2e 0d 09 53 74 61 72 74 |d here..|...Start|
|00004000| 09 4d 41 49 4e 09 45 58 | 50 4f 52 54 20 20 20 20 |.MAIN.EX|PORT |
|00004010| 20 20 20 20 3b 20 54 68 | 69 73 20 69 73 20 74 68 | ; Th|is is th|
|00004020| 65 20 6d 61 69 6e 20 65 | 6e 74 72 79 20 70 6f 69 |e main e|ntry poi|
|00004030| 6e 74 20 66 6f 72 20 74 | 68 65 20 6c 69 6e 6b 65 |nt for t|he linke|
|00004040| 72 2e 0d 09 09 4a 4d 50 | 09 46 65 65 64 65 72 20 |r....JMP|.Feeder |
|00004050| 20 20 20 20 20 20 20 3b | 20 54 68 65 20 6f 6e 65 | ;| The one|
|00004060| 20 6a 75 6d 70 20 74 61 | 62 6c 65 20 65 6e 74 72 | jump ta|ble entr|
|00004070| 79 20 69 6e 20 74 68 69 | 73 20 74 61 62 6c 65 2e |y in thi|s table.|
|00004080| 0d 09 09 45 4e 44 0d 54 | 68 69 73 20 65 78 61 6d |...END.T|his exam|
|00004090| 70 6c 65 20 66 69 72 73 | 74 20 69 6d 70 6f 72 74 |ple firs|t import|
|000040a0| 73 20 74 68 65 20 46 65 | 65 64 65 72 20 70 72 6f |s the Fe|eder pro|
|000040b0| 63 65 64 75 72 65 2c 20 | 77 68 69 63 68 20 63 61 |cedure, |which ca|
|000040c0| 6e 20 62 65 20 64 65 66 | 69 6e 65 64 20 65 78 74 |n be def|ined ext|
|000040d0| 65 72 6e 61 6c 6c 79 20 | 69 6e 20 74 68 65 20 6c |ernally |in the l|
|000040e0| 61 6e 67 75 61 67 65 20 | 6f 66 20 79 6f 75 72 20 |anguage |of your |
|000040f0| 63 68 6f 69 63 65 2e 20 | 20 4e 65 78 74 20 69 73 |choice. | Next is|
|00004100| 20 53 74 61 72 74 2c 20 | 74 68 65 20 6d 61 69 6e | Start, |the main|
|00004110| 20 65 6e 74 72 79 20 70 | 6f 69 6e 74 20 74 6f 20 | entry p|oint to |
|00004120| 74 68 65 20 6a 75 6d 70 | 20 74 61 62 6c 65 2e 20 |the jump| table. |
|00004130| 20 42 79 20 70 61 73 73 | 69 6e 67 20 74 68 69 73 | By pass|ing this|
|00004140| 20 6c 61 62 65 6c 20 74 | 6f 20 74 68 65 20 6c 69 | label t|o the li|
|00004150| 6e 6b 20 63 6f 6d 6d 61 | 6e 64 2c 20 74 68 65 20 |nk comma|nd, the |
|00004160| 6a 75 6d 70 20 74 61 62 | 6c 65 20 69 73 20 6c 6f |jump tab|le is lo|
|00004170| 63 61 74 65 64 20 61 74 | 20 74 68 65 20 62 65 67 |cated at| the beg|
|00004180| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 65 20 72 65 |inning o|f the re|
|00004190| 73 6f 75 72 63 65 2e 20 | 20 54 68 65 20 6e 65 78 |source. | The nex|
|000041a0| 74 20 6c 69 6e 65 20 69 | 73 20 74 68 65 20 61 63 |t line i|s the ac|
|000041b0| 74 75 61 6c 20 6a 75 6d | 70 20 74 61 62 6c 65 20 |tual jum|p table |
|000041c0| 65 6e 74 72 79 2c 20 61 | 6e 64 20 74 68 65 20 45 |entry, a|nd the E|
|000041d0| 4e 44 20 69 73 20 72 65 | 71 75 69 72 65 64 20 74 |ND is re|quired t|
|000041e0| 6f 20 65 6e 64 20 74 68 | 65 20 61 73 73 65 6d 62 |o end th|e assemb|
|000041f0| 6c 79 2d 6c 61 6e 67 75 | 61 67 65 20 68 65 61 64 |ly-langu|age head|
|00004200| 65 72 2e 20 20 54 68 61 | 74 d5 73 20 61 6c 6c 20 |er. Tha|t.s all |
|00004210| 74 68 65 72 65 20 69 73 | 20 74 6f 20 69 74 2e 20 |there is| to it. |
|00004220| 20 54 68 65 20 6f 6e 6c | 79 20 74 68 69 6e 67 20 | The onl|y thing |
|00004230| 6f 6e 65 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |one shou|ld have |
|00004240| 74 6f 20 63 68 61 6e 67 | 65 20 69 6e 20 74 68 69 |to chang|e in thi|
|00004250| 73 20 63 6f 64 65 20 66 | 72 61 67 6d 65 6e 74 20 |s code f|ragment |
|00004260| 77 6f 75 6c 64 20 62 65 | 20 74 68 65 20 6e 61 6d |would be| the nam|
|00004270| 65 20 6f 66 20 74 68 65 | 20 72 6f 75 74 69 6e 65 |e of the| routine|
|00004280| 20 74 6f 20 69 6d 70 6f | 72 74 2e 0d 54 68 65 20 | to impo|rt..The |
|00004290| 52 65 61 6c 20 4d 61 63 | 43 6f 64 65 0d 4e 6f 77 |Real Mac|Code.Now|
|000042a0| 20 74 68 61 74 20 74 68 | 65 20 6a 75 6d 70 20 74 | that th|e jump t|
|000042b0| 61 62 6c 65 20 69 73 20 | 63 6f 6d 70 6c 65 74 65 |able is |complete|
|000042c0| 2c 20 69 74 20 6e 65 65 | 64 73 20 73 6f 6d 65 20 |, it nee|ds some |
|000042d0| 70 6c 61 63 65 20 74 6f | 20 6a 75 6d 70 2e 20 20 |place to| jump. |
|000042e0| 41 6c 74 68 6f 75 67 68 | 20 4d 50 57 20 43 20 61 |Although| MPW C a|
|000042f0| 6e 64 20 50 61 73 63 61 | 6c 20 65 78 61 6d 70 6c |nd Pasca|l exampl|
|00004300| 65 73 20 61 72 65 20 70 | 72 6f 76 69 64 65 64 20 |es are p|rovided |
|00004310| 69 6e 20 74 68 69 73 20 | 4e 6f 74 65 2c 20 74 68 |in this |Note, th|
|00004320| 65 20 63 6f 64 65 20 63 | 61 6e 20 62 65 20 77 72 |e code c|an be wr|
|00004330| 69 74 74 65 6e 20 69 6e | 20 61 6e 79 20 6c 61 6e |itten in| any lan|
|00004340| 67 75 61 67 65 2e 20 20 | 41 73 20 6d 65 6e 74 69 |guage. |As menti|
|00004350| 6f 6e 65 64 20 62 65 66 | 6f 72 65 2c 20 74 68 65 |oned bef|ore, the|
|00004360| 20 63 6f 64 65 20 69 73 | 20 69 6d 70 6c 65 6d 65 | code is| impleme|
|00004370| 6e 74 65 64 20 61 73 20 | 61 20 70 72 6f 63 65 64 |nted as |a proced|
|00004380| 75 72 65 20 74 68 61 74 | 20 74 61 6b 65 73 20 6f |ure that| takes o|
|00004390| 6e 65 20 70 61 72 61 6d | 65 74 65 72 2e 0d 43 20 |ne param|eter..C |
|000043a0| 44 65 66 69 6e 69 74 69 | 6f 6e 0d 49 6e 20 43 2c |Definiti|on.In C,|
|000043b0| 20 74 68 69 73 20 6c 6f | 6f 6b 73 20 6c 69 6b 65 | this lo|oks like|
|000043c0| 3a 0d 20 20 20 20 23 69 | 6e 63 6c 75 64 65 20 3c |:. #i|nclude <|
|000043d0| 54 79 70 65 73 2e 68 3e | 0d 20 20 20 20 23 69 6e |Types.h>|. #in|
|000043e0| 63 6c 75 64 65 20 3c 51 | 75 69 63 6b 64 72 61 77 |clude <Q|uickdraw|
|000043f0| 2e 68 3e 0d 20 20 20 20 | 76 6f 69 64 20 46 45 45 |.h>. |void FEE|
|00004400| 44 45 52 28 52 65 63 74 | 20 2a 72 29 0d 20 20 20 |DER(Rect| *r). |
|00004410| 20 7b 0d 20 20 20 20 20 | 20 20 20 3c 43 6f 64 65 | {. | <Code|
|00004420| 20 74 6f 20 70 72 65 73 | 65 6e 74 20 61 6e 64 20 | to pres|ent and |
|00004430| 68 61 6e 64 6c 65 20 64 | 69 61 6c 6f 67 2e 2e 2e |handle d|ialog...|
|00004440| 3e 0d 20 20 20 20 7d 0d | 53 69 6e 63 65 20 74 68 |>. }.|Since th|
|00004450| 65 20 61 73 73 65 6d 62 | 6c 65 72 20 63 6f 6e 76 |e assemb|ler conv|
|00004460| 65 72 74 73 20 61 6c 6c | 20 6c 61 62 65 6c 73 20 |erts all| labels |
|00004470| 74 6f 20 75 70 70 65 72 | 63 61 73 65 2c 20 74 68 |to upper|case, th|
|00004480| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 70 72 |e name o|f the pr|
|00004490| 6f 63 65 64 75 72 65 20 | 46 45 45 44 45 52 20 6d |ocedure |FEEDER m|
|000044a0| 75 73 74 20 62 65 20 63 | 61 70 69 74 61 6c 69 7a |ust be c|apitaliz|
|000044b0| 65 64 20 74 6f 20 6d 61 | 74 63 68 20 74 68 65 20 |ed to ma|tch the |
|000044c0| 63 61 73 65 20 6f 66 20 | 74 68 65 20 6c 61 62 65 |case of |the labe|
|000044d0| 6c 20 69 6e 20 74 68 65 | 20 6a 75 6d 70 20 74 61 |l in the| jump ta|
|000044e0| 62 6c 65 2e 20 20 49 66 | 20 79 6f 75 20 61 72 65 |ble. If| you are|
|000044f0| 20 75 73 69 6e 67 20 4d | 50 57 2c 20 79 6f 75 20 | using M|PW, you |
|00004500| 63 61 6e 20 75 73 65 20 | 74 68 65 20 61 73 73 65 |can use |the asse|
|00004510| 6d 62 6c 65 72 27 73 20 | 43 41 53 45 20 64 69 72 |mbler's |CASE dir|
|00004520| 65 63 74 69 76 65 20 74 | 6f 20 70 72 65 76 65 6e |ective t|o preven|
|00004530| 74 20 74 68 65 20 61 73 | 73 65 6d 62 6c 65 72 20 |t the as|sembler |
|00004540| 66 72 6f 6d 20 63 61 70 | 69 74 61 6c 69 7a 69 6e |from cap|italizin|
|00004550| 67 20 74 68 65 20 6c 61 | 62 65 6c 73 2e 20 20 53 |g the la|bels. S|
|00004560| 69 6e 63 65 20 74 68 65 | 20 72 65 63 74 61 6e 67 |ince the| rectang|
|00004570| 6c 65 20 69 73 20 70 61 | 73 73 65 64 20 75 73 69 |le is pa|ssed usi|
|00004580| 6e 67 20 74 68 65 20 43 | 20 63 61 6c 6c 69 6e 67 |ng the C| calling|
|00004590| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 20 28 69 2e 65 | convent|ion (i.e|
|000045a0| 2e 2c 20 74 68 65 20 63 | 61 6c 6c 65 72 20 73 74 |., the c|aller st|
|000045b0| 72 69 70 73 20 74 68 65 | 20 70 61 72 61 6d 65 74 |rips the| paramet|
|000045c0| 65 72 29 2c 20 74 68 65 | 72 65 20 69 73 20 6e 6f |er), the|re is no|
|000045d0| 20 6e 65 65 64 20 74 6f | 20 64 65 63 6c 61 72 65 | need to| declare|
|000045e0| 20 74 68 65 20 70 72 6f | 63 65 64 75 72 65 20 61 | the pro|cedure a|
|000045f0| 73 20 74 79 70 65 20 50 | 61 73 63 61 6c 2e 20 20 |s type P|ascal. |
|00004600| 48 6f 77 65 76 65 72 2c | 20 74 68 69 73 20 63 6f |However,| this co|
|00004610| 6e 76 65 6e 74 69 6f 6e | 20 64 6f 65 73 20 6d 61 |nvention| does ma|
|00004620| 6b 65 20 74 68 69 6e 67 | 73 20 61 20 6c 69 74 74 |ke thing|s a litt|
|00004630| 6c 65 20 6d 6f 72 65 20 | 69 6e 74 65 72 65 73 74 |le more |interest|
|00004640| 69 6e 67 20 66 6f 72 20 | 74 68 65 20 50 61 73 63 |ing for |the Pasc|
|00004650| 61 6c 20 76 65 72 73 69 | 6f 6e 3a 0d 50 61 73 63 |al versi|on:.Pasc|
|00004660| 61 6c 20 44 65 66 69 6e | 69 74 69 6f 6e 0d 49 66 |al Defin|ition.If|
|00004670| 20 79 6f 75 20 61 72 65 | 20 75 73 69 6e 67 20 4d | you are| using M|
|00004680| 50 57 2c 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |PW, you |can use |
|00004690| 74 68 65 20 50 61 73 63 | 61 6c 20 63 6f 6d 70 69 |the Pasc|al compi|
|000046a0| 6c 65 72 27 73 20 43 20 | 64 69 72 65 63 74 69 76 |ler's C |directiv|
|000046b0| 65 20 74 6f 20 64 65 66 | 69 6e 65 20 74 68 65 20 |e to def|ine the |
|000046c0| 46 65 65 64 65 72 20 70 | 72 6f 63 65 64 75 72 65 |Feeder p|rocedure|
|000046d0| 20 61 73 20 75 73 69 6e | 67 20 74 68 65 20 43 20 | as usin|g the C |
|000046e0| 63 61 6c 6c 69 6e 67 20 | 63 6f 6e 76 65 6e 74 69 |calling |conventi|
|000046f0| 6f 6e 2e 20 20 54 68 69 | 73 20 6d 61 6b 65 73 20 |on. Thi|s makes |
|00004700| 74 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6c |the defi|nition l|
|00004710| 6f 6f 6b 20 6c 69 6b 65 | 20 74 68 69 73 3a 0d 20 |ook like| this:. |
|00004720| 20 20 20 55 4e 49 54 20 | 46 65 65 64 65 72 53 61 | UNIT |FeederSa|
|00004730| 6d 70 6c 65 3b 0d 20 20 | 20 20 20 20 20 20 49 4e |mple;. | IN|
|00004740| 54 45 52 46 41 43 45 20 | 0d 20 20 20 20 20 20 20 |TERFACE |. |
|00004750| 20 20 20 20 20 55 53 45 | 53 20 54 79 70 65 73 2c | USE|S Types,|
|00004760| 20 51 75 69 63 6b 64 72 | 61 77 3b 0d 20 20 20 20 | Quickdr|aw;. |
|00004770| 20 20 20 20 50 52 4f 43 | 45 44 55 52 45 20 46 65 | PROC|EDURE Fe|
|00004780| 65 64 65 72 28 72 3a 20 | 52 65 63 74 29 3b 20 43 |eder(r: |Rect); C|
|00004790| 3b 0d 20 20 20 20 20 20 | 20 20 49 4d 50 4c 45 4d |;. | IMPLEM|
|000047a0| 45 4e 54 41 54 49 4f 4e | 0d 20 20 20 20 20 20 20 |ENTATION|. |
|000047b0| 20 50 52 4f 43 45 44 55 | 52 45 20 46 65 65 64 65 | PROCEDU|RE Feede|
|000047c0| 72 28 72 3a 20 52 65 63 | 74 29 3b 0d 20 20 20 20 |r(r: Rec|t);. |
|000047d0| 20 20 20 20 42 45 47 49 | 4e 20 20 20 20 20 20 20 | BEGI|N |
|000047e0| 20 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 3c 43 | . | <C|
|000047f0| 6f 64 65 20 74 6f 20 70 | 72 65 73 65 6e 74 20 61 |ode to p|resent a|
|00004800| 6e 64 20 68 61 6e 64 6c | 65 20 64 69 61 6c 6f 67 |nd handl|e dialog|
|00004810| 2e 2e 2e 3e 0d 20 20 20 | 20 20 20 20 20 45 4e 44 |...>. | END|
|00004820| 3b 0d 20 20 20 20 45 4e | 44 2e 0d 53 6f 20 74 68 |;. EN|D..So th|
|00004830| 69 73 20 69 73 20 73 74 | 72 61 69 67 68 74 20 66 |is is st|raight f|
|00004840| 6f 72 77 61 72 64 2e 20 | 20 54 68 65 20 70 72 6f |orward. | The pro|
|00004850| 63 65 64 75 72 65 20 46 | 65 65 64 65 72 20 69 73 |cedure F|eeder is|
|00004860| 20 64 65 66 69 6e 65 64 | 20 61 73 20 68 61 76 69 | defined| as havi|
|00004870| 6e 67 20 6f 6e 65 20 70 | 61 72 61 6d 65 74 65 72 |ng one p|arameter|
|00004880| 20 28 72 29 2c 20 61 6e | 64 20 74 68 65 20 43 20 | (r), an|d the C |
|00004890| 64 69 72 65 63 74 69 76 | 65 20 69 73 20 75 73 65 |directiv|e is use|
|000048a0| 64 20 73 6f 20 74 68 61 | 74 20 74 68 65 20 73 74 |d so tha|t the st|
|000048b0| 61 63 6b 20 69 73 20 68 | 61 6e 64 6c 65 64 20 63 |ack is h|andled c|
|000048c0| 6f 72 72 65 63 74 6c 79 | 2e 20 0d 49 66 20 79 6f |orrectly|. .If yo|
|000048d0| 75 20 61 72 65 20 75 73 | 69 6e 67 20 73 6f 6d 65 |u are us|ing some|
|000048e0| 20 6f 74 68 65 72 20 64 | 65 76 65 6c 6f 70 6d 65 | other d|evelopme|
|000048f0| 6e 74 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 74 |nt envir|onment t|
|00004900| 68 61 74 20 64 6f 65 73 | 6e 27 74 20 73 75 70 70 |hat does|n't supp|
|00004910| 6f 72 74 20 74 68 65 20 | 43 20 64 69 72 65 63 74 |ort the |C direct|
|00004920| 69 76 65 2c 20 79 6f 75 | 20 68 61 76 65 20 74 6f |ive, you| have to|
|00004930| 20 64 6f 20 61 20 6c 69 | 74 74 6c 65 20 6d 6f 72 | do a li|ttle mor|
|00004940| 65 20 77 6f 72 6b 2c 20 | 6d 61 6b 69 6e 67 20 74 |e work, |making t|
|00004950| 68 65 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6c 6f |he defin|ition lo|
|00004960| 6f 6b 20 6c 69 6b 65 20 | 74 68 69 73 3a 0d 20 20 |ok like |this:. |
|00004970| 20 20 55 4e 49 54 20 46 | 65 65 64 65 72 53 61 6d | UNIT F|eederSam|
|00004980| 70 6c 65 3b 0d 20 20 20 | 20 20 20 20 20 49 4e 54 |ple;. | INT|
|00004990| 45 52 46 41 43 45 20 0d | 20 20 20 20 20 20 20 20 |ERFACE .| |
|000049a0| 20 20 20 20 55 53 45 53 | 20 54 79 70 65 73 2c 20 | USES| Types, |
|000049b0| 51 75 69 63 6b 64 72 61 | 77 3b 0d 20 20 20 20 20 |Quickdra|w;. |
|000049c0| 20 20 20 50 52 4f 43 45 | 44 55 52 45 20 46 65 65 | PROCE|DURE Fee|
|000049d0| 64 65 72 3b 0d 20 20 20 | 20 20 20 20 20 49 4d 50 |der;. | IMP|
|000049e0| 4c 45 4d 45 4e 54 41 54 | 49 4f 4e 0d 20 20 20 20 |LEMENTAT|ION. |
|000049f0| 20 20 20 20 46 55 4e 43 | 54 49 4f 4e 20 53 74 65 | FUNC|TION Ste|
|00004a00| 61 6c 52 65 63 74 61 6c | 50 61 72 61 6d 3a 20 52 |alRectal|Param: R|
|00004a10| 65 63 74 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ect;. | |
|00004a20| 20 49 4e 4c 49 4e 45 20 | 20 20 20 24 32 45 41 45 | INLINE | $2EAE|
|00004a30| 2c 20 30 30 30 38 3b 20 | 20 20 20 20 20 20 20 7b |, 0008; | {|
|00004a40| 20 4d 4f 56 45 2e 4c 20 | 20 20 20 20 20 20 20 38 | MOVE.L | 8|
|00004a50| 28 41 36 29 2c 28 41 37 | 29 20 7d 0d 20 20 20 20 |(A6),(A7|) }. |
|00004a60| 20 20 20 20 50 52 4f 43 | 45 44 55 52 45 20 46 65 | PROC|EDURE Fe|
|00004a70| 65 64 65 72 3b 0d 20 20 | 20 20 20 20 20 20 56 41 |eder;. | VA|
|00004a80| 52 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 72 3a |R. | r:|
|00004a90| 20 20 20 20 52 65 63 74 | 3b 0d 20 20 20 20 20 20 | Rect|;. |
|00004aa0| 20 20 42 45 47 49 4e 0d | 20 20 20 20 20 20 20 20 | BEGIN.| |
|00004ab0| 20 20 20 20 72 20 3a 3d | 20 53 74 65 61 6c 52 65 | r :=| StealRe|
|00004ac0| 63 74 61 6c 50 61 72 61 | 6d 3b 0d 20 20 20 20 20 |ctalPara|m;. |
|00004ad0| 20 20 20 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00004ae0| 3c 43 6f 64 65 20 74 6f | 20 70 72 65 73 65 6e 74 |<Code to| present|
|00004af0| 20 61 6e 64 20 68 61 6e | 64 6c 65 20 64 69 61 6c | and han|dle dial|
|00004b00| 6f 67 2e 2e 2e 3e 0d 20 | 20 20 20 20 20 20 20 45 |og...>. | E|
|00004b10| 4e 44 3b 0d 20 20 20 20 | 45 4e 44 2e 0d 46 69 72 |ND;. |END..Fir|
|00004b20| 73 74 20 6f 66 20 61 6c | 6c 2c 20 61 20 75 6e 69 |st of al|l, a uni|
|00004b30| 74 20 69 73 20 64 65 66 | 69 6e 65 64 2c 20 61 6e |t is def|ined, an|
|00004b40| 64 20 74 68 65 20 70 72 | 6f 70 65 72 20 69 6e 74 |d the pr|oper int|
|00004b50| 65 72 66 61 63 65 73 20 | 61 72 65 20 69 6e 63 6c |erfaces |are incl|
|00004b60| 75 64 65 64 2e 20 20 54 | 68 65 20 64 65 66 69 6e |uded. T|he defin|
|00004b70| 69 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 46 65 65 |ition of| the Fee|
|00004b80| 64 65 72 20 70 72 6f 63 | 65 64 75 72 65 20 69 6e |der proc|edure in|
|00004b90| 20 74 68 65 20 49 4e 54 | 45 52 46 41 43 45 20 73 | the INT|ERFACE s|
|00004ba0| 65 63 74 69 6f 6e 20 69 | 73 20 72 65 71 75 69 72 |ection i|s requir|
|00004bb0| 65 64 20 74 6f 20 6d 61 | 6b 65 20 74 68 65 20 6c |ed to ma|ke the l|
|00004bc0| 61 62 65 6c 20 61 76 61 | 69 6c 61 62 6c 65 20 74 |abel ava|ilable t|
|00004bd0| 6f 20 65 78 74 65 72 6e | 61 6c 20 6d 6f 64 75 6c |o extern|al modul|
|00004be0| 65 73 2e 20 20 49 6e 20 | 74 68 65 20 49 4d 50 4c |es. In |the IMPL|
|00004bf0| 45 4d 45 4e 54 41 54 49 | 4f 4e 20 73 65 63 74 69 |EMENTATI|ON secti|
|00004c00| 6f 6e 2c 20 6f 6e 65 20 | 73 74 61 72 74 73 20 77 |on, one |starts w|
|00004c10| 69 74 68 20 74 68 65 20 | 53 74 65 61 6c 52 65 63 |ith the |StealRec|
|00004c20| 74 61 6c 50 61 72 61 6d | 20 66 75 6e 63 74 69 6f |talParam| functio|
|00004c30| 6e 2c 20 77 68 69 63 68 | 20 69 73 20 75 73 65 64 |n, which| is used|
|00004c40| 20 74 6f 20 67 65 74 20 | 74 68 65 20 72 65 63 74 | to get |the rect|
|00004c50| 61 6e 67 6c 65 20 70 61 | 73 73 65 64 20 62 79 20 |angle pa|ssed by |
|00004c60| 74 68 65 20 50 72 69 6e | 74 69 6e 67 20 4d 61 6e |the Prin|ting Man|
|00004c70| 61 67 65 72 20 77 69 74 | 68 6f 75 74 20 61 63 74 |ager wit|hout act|
|00004c80| 75 61 6c 6c 79 20 72 65 | 6d 6f 76 69 6e 67 20 69 |ually re|moving i|
|00004c90| 74 20 66 72 6f 6d 20 74 | 68 65 20 73 74 61 63 6b |t from t|he stack|
|00004ca0| 2e 20 20 49 66 20 79 6f | 75 20 64 65 63 6c 61 72 |. If yo|u declar|
|00004cb0| 65 64 20 74 68 65 20 72 | 65 63 74 61 6e 67 6c 65 |ed the r|ectangle|
|00004cc0| 20 61 73 20 61 20 70 61 | 72 61 6d 65 74 65 72 20 | as a pa|rameter |
|00004cd0| 74 6f 20 74 68 65 20 46 | 65 65 64 65 72 20 70 72 |to the F|eeder pr|
|00004ce0| 6f 63 65 64 75 72 65 2c | 20 46 65 65 64 65 72 20 |ocedure,| Feeder |
|00004cf0| 77 6f 75 6c 64 20 72 65 | 6d 6f 76 65 20 74 68 65 |would re|move the|
|00004d00| 20 70 61 72 61 6d 65 74 | 65 72 20 62 65 66 6f 72 | paramet|er befor|
|00004d10| 65 20 72 65 74 75 72 6e | 69 6e 67 2c 20 74 68 65 |e return|ing, the|
|00004d20| 6e 20 77 68 65 6e 20 74 | 68 65 20 63 61 6c 6c 65 |n when t|he calle|
|00004d30| 72 20 74 72 69 65 64 20 | 74 6f 20 72 65 6d 6f 76 |r tried |to remov|
|00004d40| 65 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 20 |e the pa|rameter |
|00004d50| 61 67 61 69 6e 2c 20 74 | 68 65 20 73 74 61 63 6b |again, t|he stack|
|00004d60| 20 77 6f 75 6c 64 20 62 | 65 20 69 6e 76 61 6c 69 | would b|e invali|
|00004d70| 64 20 61 6e 64 20 77 6f | 75 6c 64 20 63 61 75 73 |d and wo|uld caus|
|00004d80| 65 20 61 20 63 72 61 73 | 68 2e 0d 54 6f 20 73 6f |e a cras|h..To so|
|00004d90| 6c 76 65 20 74 68 69 73 | 20 70 72 6f 62 6c 65 6d |lve this| problem|
|00004da0| 2c 20 64 65 66 69 6e 65 | 20 74 68 65 20 46 65 65 |, define| the Fee|
|00004db0| 64 65 72 20 70 72 6f 63 | 65 64 75 72 65 20 77 69 |der proc|edure wi|
|00004dc0| 74 68 20 6e 6f 20 70 61 | 72 61 6d 65 74 65 72 73 |th no pa|rameters|
|00004dd0| 2e 20 20 54 68 69 73 20 | 77 61 79 2c 20 74 68 65 |. This |way, the|
|00004de0| 20 46 65 65 64 65 72 20 | 70 72 6f 63 65 64 75 72 | Feeder |procedur|
|00004df0| 65 20 6c 65 61 76 65 73 | 20 74 68 65 20 70 61 72 |e leaves| the par|
|00004e00| 61 6d 65 74 65 72 20 72 | 69 67 68 74 20 77 68 65 |ameter r|ight whe|
|00004e10| 72 65 20 74 68 65 20 63 | 61 6c 6c 65 72 20 6c 65 |re the c|aller le|
|00004e20| 66 74 20 69 74 2e 20 20 | 54 6f 20 67 65 74 20 74 |ft it. |To get t|
|00004e30| 68 65 20 70 61 72 61 6d | 65 74 65 72 20 77 69 74 |he param|eter wit|
|00004e40| 68 6f 75 74 20 72 65 6d | 6f 76 69 6e 67 20 69 74 |hout rem|oving it|
|00004e50| 20 66 72 6f 6d 20 74 68 | 65 20 73 74 61 63 6b 2c | from th|e stack,|
|00004e60| 20 75 73 65 20 74 68 65 | 20 53 74 65 61 6c 52 65 | use the| StealRe|
|00004e70| 63 74 61 6c 50 61 72 61 | 6d 20 66 75 6e 63 74 69 |ctalPara|m functi|
|00004e80| 6f 6e 2c 20 77 68 69 63 | 68 20 6d 6f 76 65 73 20 |on, whic|h moves |
|00004e90| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 66 72 |the para|meter fr|
|00004ea0| 6f 6d 20 69 74 73 20 6e | 6f 72 6d 61 6c 20 6c 6f |om its n|ormal lo|
|00004eb0| 63 61 74 69 6f 6e 20 28 | 6f 66 66 20 6f 66 20 41 |cation (|off of A|
|00004ec0| 36 29 20 69 6e 74 6f 20 | 74 68 65 20 6c 6f 63 61 |6) into |the loca|
|00004ed0| 74 69 6f 6e 20 70 6f 69 | 6e 74 65 64 20 74 6f 20 |tion poi|nted to |
|00004ee0| 62 79 20 74 68 65 20 73 | 74 61 63 6b 20 70 6f 69 |by the s|tack poi|
|00004ef0| 6e 74 65 72 2e 20 20 53 | 69 6e 63 65 20 53 74 65 |nter. S|ince Ste|
|00004f00| 61 6c 52 65 63 74 61 6c | 50 61 72 61 6d 20 69 73 |alRectal|Param is|
|00004f10| 20 61 20 66 75 6e 63 74 | 69 6f 6e 2c 20 74 68 65 | a funct|ion, the|
|00004f20| 20 73 74 61 63 6b 20 70 | 6f 69 6e 74 65 72 20 69 | stack p|ointer i|
|00004f30| 73 20 61 6c 72 65 61 64 | 79 20 70 6f 69 6e 74 69 |s alread|y pointi|
|00004f40| 6e 67 20 74 6f 20 74 68 | 65 20 72 65 74 75 72 6e |ng to th|e return|
|00004f50| 20 76 61 6c 75 65 2e 20 | 20 57 68 65 6e 20 53 74 | value. | When St|
|00004f60| 65 61 6c 52 65 63 74 61 | 6c 50 61 72 61 6d 20 72 |ealRecta|lParam r|
|00004f70| 65 74 75 72 6e 73 2c 20 | 74 68 65 20 46 65 65 64 |eturns, |the Feed|
|00004f80| 65 72 20 72 6f 75 74 69 | 6e 65 20 67 65 74 73 20 |er routi|ne gets |
|00004f90| 74 68 65 20 72 65 63 74 | 61 6e 67 6c 65 20 70 61 |the rect|angle pa|
|00004fa0| 72 61 6d 65 74 65 72 2c | 20 77 69 74 68 6f 75 74 |rameter,| without|
|00004fb0| 20 68 61 76 69 6e 67 20 | 72 65 6d 6f 76 65 64 20 | having |removed |
|00004fc0| 69 74 20 66 72 6f 6d 20 | 74 68 65 20 73 74 61 63 |it from |the stac|
|00004fd0| 6b 2e 0d 54 69 63 6b 6c | 65 64 20 4c 69 6e 6b 0d |k..Tickl|ed Link.|
|00004fe0| 4e 6f 77 20 79 6f 75 20 | 68 61 76 65 20 74 68 65 |Now you |have the|
|00004ff0| 20 6a 75 6d 70 20 74 61 | 62 6c 65 20 61 6e 64 20 | jump ta|ble and |
|00005000| 74 68 65 20 63 6f 64 65 | 2c 20 62 75 74 20 79 6f |the code|, but yo|
|00005010| 75 20 73 74 69 6c 6c 20 | 6e 65 65 64 20 74 6f 20 |u still |need to |
|00005020| 6c 69 6e 6b 20 74 68 65 | 6d 20 74 6f 67 65 74 68 |link the|m togeth|
|00005030| 65 72 2e 20 20 54 68 69 | 73 20 73 74 65 70 20 69 |er. Thi|s step i|
|00005040| 73 20 70 72 65 74 74 79 | 20 73 69 6d 70 6c 65 2c |s pretty| simple,|
|00005050| 20 62 75 74 20 72 65 6d | 65 6d 62 65 72 20 74 6f | but rem|ember to|
|00005060| 20 73 70 65 63 69 66 79 | 20 74 68 65 20 73 74 61 | specify| the sta|
|00005070| 72 74 69 6e 67 20 6c 6f | 63 61 74 69 6f 6e 20 6f |rting lo|cation o|
|00005080| 66 20 74 68 65 20 6a 75 | 6d 70 20 74 61 62 6c 65 |f the ju|mp table|
|00005090| 2e 20 20 49 74 20 6c 6f | 6f 6b 73 20 6c 69 6b 65 |. It lo|oks like|
|000050a0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 3a 0d | the fol|lowing:.|
|000050b0| 20 20 20 20 4c 69 6e 6b | 20 2d 77 20 2d 74 20 66 | Link| -w -t f|
|000050c0| 65 65 64 20 2d 63 20 5a | 7a 5a 7a 20 2d 72 74 20 |eed -c Z|zZz -rt |
|000050d0| 66 65 65 64 3d 2d 38 31 | 39 32 20 2d 6d 20 53 54 |feed=-81|92 -m ST|
|000050e0| 41 52 54 20 2d 73 67 20 | 46 65 65 64 65 72 20 b6 |ART -sg |Feeder .|
|000050f0| 0d 20 20 20 20 20 20 20 | 20 46 65 65 64 65 72 2e |. | Feeder.|
|00005100| 61 2e 6f 20 b6 20 20 20 | 20 20 20 20 20 20 20 20 |a.o . | |
|00005110| 20 20 20 23 20 54 68 69 | 73 20 66 69 6c 65 20 4d | # Thi|s file M|
|00005120| 55 53 54 20 62 65 20 66 | 69 72 73 74 2e 0d 20 20 |UST be f|irst.. |
|00005130| 20 20 20 20 20 20 46 65 | 65 64 65 72 2e 70 2e 6f | Fe|eder.p.o|
|00005140| 20 b6 0d 20 20 20 20 20 | 20 20 20 22 7b 4c 69 62 | .. | "{Lib|
|00005150| 72 61 72 69 65 73 7d 22 | 52 75 6e 74 69 6d 65 2e |raries}"|Runtime.|
|00005160| 6f 20 b6 0d 20 20 20 20 | 20 20 20 20 22 7b 4c 69 |o .. | "{Li|
|00005170| 62 72 61 72 69 65 73 7d | 22 49 6e 74 65 72 66 61 |braries}|"Interfa|
|00005180| 63 65 2e 6f 20 b6 0d 20 | 20 20 20 20 20 20 20 22 |ce.o .. | "|
|00005190| 7b 50 4c 69 62 72 61 72 | 69 65 73 7d 22 53 41 4e |{PLibrar|ies}"SAN|
|000051a0| 45 4c 69 62 2e 6f 20 b6 | 0d 20 20 20 20 20 20 20 |ELib.o .|. |
|000051b0| 20 22 7b 50 4c 69 62 72 | 61 72 69 65 73 7d 22 50 | "{PLibr|aries}"P|
|000051c0| 61 73 4c 69 62 2e 6f 20 | b6 0d 20 20 20 20 20 20 |asLib.o |.. |
|000051d0| 20 20 2d 6f 20 46 65 65 | 64 65 72 0d 46 69 72 73 | -o Fee|der.Firs|
|000051e0| 74 20 74 65 6c 6c 20 74 | 68 65 20 6c 69 6e 6b 65 |t tell t|he linke|
|000051f0| 72 20 74 6f 20 6c 69 6e | 6b 20 74 68 65 20 63 6f |r to lin|k the co|
|00005200| 64 65 20 69 6e 74 6f 20 | 61 20 27 66 65 65 64 27 |de into |a 'feed'|
|00005210| 20 72 65 73 6f 75 72 63 | 65 20 77 69 74 68 20 61 | resourc|e with a|
|00005220| 6e 20 49 44 20 6f 66 20 | 2d 38 31 39 32 2e 20 20 |n ID of |-8192. |
|00005230| 4e 65 78 74 2c 20 73 70 | 65 63 69 66 79 20 74 68 |Next, sp|ecify th|
|00005240| 61 74 20 74 68 65 20 72 | 65 73 6f 75 72 63 65 20 |at the r|esource |
|00005250| 62 65 67 69 6e 73 20 77 | 69 74 68 20 74 68 65 20 |begins w|ith the |
|00005260| 63 6f 64 65 20 61 74 20 | 6c 61 62 65 6c 20 53 54 |code at |label ST|
|00005270| 41 52 54 2e 20 20 54 68 | 69 73 20 6c 61 62 65 6c |ART. Th|is label|
|00005280| 20 77 61 73 20 64 65 66 | 69 6e 65 64 20 62 79 20 | was def|ined by |
|00005290| 74 68 65 20 61 73 73 65 | 6d 62 6c 79 2d 6c 61 6e |the asse|mbly-lan|
|000052a0| 67 75 61 67 65 20 75 73 | 65 64 20 74 6f 20 67 65 |guage us|ed to ge|
|000052b0| 6e 65 72 61 74 65 20 74 | 68 65 20 6a 75 6d 70 20 |nerate t|he jump |
|000052c0| 74 61 62 6c 65 2e 20 20 | 46 69 6e 61 6c 6c 79 2c |table. |Finally,|
|000052d0| 20 74 65 6c 6c 20 74 68 | 65 20 6c 69 6e 6b 65 72 | tell th|e linker|
|000052e0| 20 74 6f 20 6c 69 6e 6b | 20 61 6c 6c 20 6f 66 20 | to link| all of |
|000052f0| 74 68 65 20 63 6f 64 65 | 20 69 6e 74 6f 20 61 20 |the code| into a |
|00005300| 73 69 6e 67 6c 65 20 73 | 65 67 6d 65 6e 74 20 6e |single s|egment n|
|00005310| 61 6d 65 64 20 46 65 65 | 64 65 72 2e 20 20 4f 62 |amed Fee|der. Ob|
|00005320| 76 69 6f 75 73 6c 79 2c | 20 74 68 65 20 6c 69 73 |viously,| the lis|
|00005330| 74 20 6f 66 20 6c 69 62 | 72 61 72 69 65 73 20 61 |t of lib|raries a|
|00005340| 6e 64 20 6f 62 6a 65 63 | 74 20 66 69 6c 65 73 20 |nd objec|t files |
|00005350| 63 68 61 6e 67 65 73 20 | 64 65 70 65 6e 64 69 6e |changes |dependin|
|00005360| 67 20 75 70 6f 6e 20 74 | 68 65 20 6c 61 6e 67 75 |g upon t|he langu|
|00005370| 61 67 65 20 75 73 65 64 | 2c 20 62 75 74 20 74 68 |age used|, but th|
|00005380| 65 20 64 69 72 65 63 74 | 69 76 65 73 20 74 6f 20 |e direct|ives to |
|00005390| 74 68 65 20 4c 69 6e 6b | 20 63 6f 6d 6d 61 6e 64 |the Link| command|
|000053a0| 20 73 68 6f 75 6c 64 20 | 72 65 6d 61 69 6e 20 74 | should |remain t|
|000053b0| 68 65 20 73 61 6d 65 2e | 0d 57 65 6c 6c 20 46 65 |he same.|.Well Fe|
|000053c0| 64 0d 53 6f 20 74 68 61 | 74 20 73 68 6f 75 6c 64 |d.So tha|t should|
|000053d0| 20 62 65 20 65 6e 6f 75 | 67 68 20 74 6f 20 67 65 | be enou|gh to ge|
|000053e0| 74 20 73 6f 6d 65 20 63 | 6f 64 65 20 69 6e 74 6f |t some c|ode into|
|000053f0| 20 74 68 65 20 27 66 65 | 65 64 27 20 72 65 73 6f | the 'fe|ed' reso|
|00005400| 75 72 63 65 2e 20 20 4e | 6f 77 20 79 6f 75 20 6e |urce. N|ow you n|
|00005410| 65 65 64 20 74 6f 20 61 | 63 74 75 61 6c 6c 79 20 |eed to a|ctually |
|00005420| 63 6f 6e 74 72 6f 6c 20 | 74 68 65 20 66 65 65 64 |control |the feed|
|00005430| 65 72 20 64 75 72 69 6e | 67 20 74 68 65 20 70 72 |er durin|g the pr|
|00005440| 69 6e 74 20 6a 6f 62 2e | 20 20 54 6f 20 64 6f 20 |int job.| To do |
|00005450| 74 68 69 73 2c 20 79 6f | 75 20 6d 75 73 74 20 75 |this, yo|u must u|
|00005460| 73 65 20 50 6f 73 74 53 | 63 72 69 70 74 2e 20 20 |se PostS|cript. |
|00005470| 59 6f 75 72 20 64 72 69 | 76 65 72 20 73 68 6f 75 |Your dri|ver shou|
|00005480| 6c 64 20 61 6c 73 6f 20 | 70 72 6f 76 69 64 65 20 |ld also |provide |
|00005490| 61 20 27 66 65 65 64 27 | 20 72 65 73 6f 75 72 63 |a 'feed'| resourc|
|000054a0| 65 20 6f 66 20 2d 38 31 | 39 31 20 63 6f 6e 74 61 |e of -81|91 conta|
|000054b0| 69 6e 69 6e 67 20 50 6f | 73 74 53 63 72 69 70 74 |ining Po|stScript|
|000054c0| 20 63 6f 64 65 2e 20 20 | 54 68 69 73 20 63 6f 64 | code. |This cod|
|000054d0| 65 20 69 73 20 64 6f 77 | 6e 6c 6f 61 64 65 64 20 |e is dow|nloaded |
|000054e0| 62 79 20 74 68 65 20 4c | 61 73 65 72 57 72 69 74 |by the L|aserWrit|
|000054f0| 65 72 20 64 72 69 76 65 | 72 20 70 72 69 6f 72 20 |er drive|r prior |
|00005500| 74 6f 20 64 6f 77 6e 6c | 6f 61 64 69 6e 67 20 74 |to downl|oading t|
|00005510| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 6a |he rest |of the j|
|00005520| 6f 62 2e 20 20 46 6f 72 | 20 74 68 6f 73 65 20 66 |ob. For| those f|
|00005530| 61 6d 69 6c 69 61 72 20 | 77 69 74 68 20 74 68 65 |amiliar |with the|
|00005540| 20 27 50 52 45 43 27 20 | 31 30 33 20 72 65 73 6f | 'PREC' |103 reso|
|00005550| 75 72 63 65 2c 20 74 68 | 65 20 50 6f 73 74 53 63 |urce, th|e PostSc|
|00005560| 72 69 70 74 20 69 6e 20 | 74 68 65 20 27 66 65 65 |ript in |the 'fee|
|00005570| 64 27 20 72 65 73 6f 75 | 72 63 65 20 69 73 20 64 |d' resou|rce is d|
|00005580| 6f 77 6e 6c 6f 61 64 65 | 64 20 62 65 66 6f 72 65 |ownloade|d before|
|00005590| 20 74 68 65 20 27 50 52 | 45 43 27 20 31 30 33 20 | the 'PR|EC' 103 |
|000055a0| 63 6f 64 65 2e 20 20 41 | 64 64 69 74 69 6f 6e 61 |code. A|dditiona|
|000055b0| 6c 20 50 6f 73 74 53 63 | 72 69 70 74 20 74 6f 20 |l PostSc|ript to |
|000055c0| 62 65 20 64 6f 77 6e 6c | 6f 61 64 65 64 20 63 61 |be downl|oaded ca|
|000055d0| 6e 20 62 65 20 73 74 6f | 72 65 64 20 69 6e 20 27 |n be sto|red in '|
|000055e0| 66 65 65 64 27 20 2d 38 | 31 39 30 2e 20 20 54 68 |feed' -8|190. Th|
|000055f0| 65 20 50 6f 73 74 53 63 | 72 69 70 74 20 63 6f 64 |e PostSc|ript cod|
|00005600| 65 20 69 6e 20 74 68 65 | 20 27 66 65 65 64 27 20 |e in the| 'feed' |
|00005610| 72 65 73 6f 75 72 63 65 | 20 73 68 6f 75 6c 64 20 |resource| should |
|00005620| 72 65 64 65 66 69 6e 65 | 20 28 69 2e 65 2e 2c 20 |redefine| (i.e., |
|00005630| 70 61 74 63 68 29 20 74 | 68 65 20 50 6f 73 74 53 |patch) t|he PostS|
|00005640| 63 72 69 70 74 20 6f 70 | 65 72 61 74 6f 72 73 20 |cript op|erators |
|00005650| 72 65 71 75 69 72 65 64 | 20 74 6f 20 68 61 6e 64 |required| to hand|
|00005660| 6c 65 20 73 77 69 74 63 | 68 69 6e 67 20 66 65 65 |le switc|hing fee|
|00005670| 64 65 72 73 2e 20 20 41 | 20 6c 69 6b 65 6c 79 20 |ders. A| likely |
|00005680| 63 61 6e 64 69 64 61 74 | 65 20 69 73 20 74 68 65 |candidat|e is the|
|00005690| 20 73 68 6f 77 70 61 67 | 65 20 6f 70 65 72 61 74 | showpag|e operat|
|000056a0| 6f 72 20 63 61 6c 6c 65 | 64 20 61 74 20 74 68 65 |or calle|d at the|
|000056b0| 20 65 6e 64 20 6f 66 20 | 65 61 63 68 20 70 61 67 | end of |each pag|
|000056c0| 65 2e 20 20 41 73 20 61 | 6c 77 61 79 73 2c 20 63 |e. As a|lways, c|
|000056d0| 61 6c 6c 69 6e 67 20 6f | 72 20 72 65 64 65 66 69 |alling o|r redefi|
|000056e0| 6e 69 6e 67 20 6f 70 65 | 72 61 74 6f 72 73 20 64 |ning ope|rators d|
|000056f0| 65 66 69 6e 65 64 20 62 | 79 20 74 68 65 20 4c 61 |efined b|y the La|
|00005700| 73 65 72 50 72 65 70 20 | 28 6d 64 29 20 64 69 63 |serPrep |(md) dic|
|00005710| 74 69 6f 6e 61 72 79 20 | 69 73 20 6e 6f 74 20 73 |tionary |is not s|
|00005720| 75 70 70 6f 72 74 65 64 | 2e 20 20 49 66 20 79 6f |upported|. If yo|
|00005730| 75 72 20 64 65 76 69 63 | 65 20 69 73 20 63 6f 6e |ur devic|e is con|
|00005740| 6e 65 63 74 65 64 20 76 | 69 61 20 74 68 65 20 4c |nected v|ia the L|
|00005750| 61 73 65 72 57 72 69 74 | 65 72 d5 73 20 73 65 72 |aserWrit|er.s ser|
|00005760| 69 61 6c 20 70 6f 72 74 | 2c 20 79 6f 75 20 63 61 |ial port|, you ca|
|00005770| 6e 20 6c 69 63 65 6e 73 | 65 20 63 6f 64 65 20 66 |n licens|e code f|
|00005780| 72 6f 6d 20 41 64 6f 62 | 65 20 53 79 73 74 65 6d |rom Adob|e System|
|00005790| 73 2c 20 49 6e 63 2e 20 | 74 68 61 74 20 6d 61 6b |s, Inc. |that mak|
|000057a0| 65 73 20 69 74 20 70 6f | 73 73 69 62 6c 65 20 74 |es it po|ssible t|
|000057b0| 6f 20 61 63 63 65 73 73 | 20 74 68 65 20 73 65 72 |o access| the ser|
|000057c0| 69 61 6c 20 70 6f 72 74 | 20 77 68 69 6c 65 20 74 |ial port| while t|
|000057d0| 68 65 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 69 |he Laser|Writer i|
|000057e0| 73 20 63 6f 6e 6e 65 63 | 74 65 64 20 6f 76 65 72 |s connec|ted over|
|000057f0| 20 41 70 70 6c 65 54 61 | 6c 6b 2e 20 20 46 6f 72 | AppleTa|lk. For|
|00005800| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00005810| 6e 2c 20 63 6f 6e 74 61 | 63 74 20 41 64 6f 62 65 |n, conta|ct Adobe|
|00005820| 20 61 74 3a 0d 09 09 09 | 41 64 6f 62 65 20 53 79 | at:....|Adobe Sy|
|00005830| 73 74 65 6d 73 2c 20 49 | 6e 63 2e 0d 09 09 09 31 |stems, I|nc.....1|
|00005840| 35 38 35 20 43 68 61 72 | 6c 65 73 74 6f 6e 20 52 |585 Char|leston R|
|00005850| 6f 61 64 0d 09 09 09 4d | 6f 75 6e 74 61 69 6e 20 |oad....M|ountain |
|00005860| 56 69 65 77 2c 20 43 41 | 20 20 39 34 30 34 33 0d |View, CA| 94043.|
|00005870| 09 09 09 28 34 31 35 29 | 20 39 36 31 2d 34 34 30 |...(415)| 961-440|
|00005880| 30 0d 4f 6e 63 65 20 61 | 20 75 73 65 72 20 68 61 |0.Once a| user ha|
|00005890| 73 20 63 6f 6e 66 69 72 | 6d 65 64 20 74 68 65 20 |s confir|med the |
|000058a0| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 66 72 |configur|ation fr|
|000058b0| 6f 6d 20 74 68 65 20 64 | 69 61 6c 6f 67 20 62 6f |om the d|ialog bo|
|000058c0| 78 2c 20 79 6f 75 20 63 | 61 6e 20 65 64 69 74 20 |x, you c|an edit |
|000058d0| 74 68 65 20 50 6f 73 74 | 53 63 72 69 70 74 20 63 |the Post|Script c|
|000058e0| 6f 64 65 20 69 6e 20 74 | 68 65 20 2d 38 31 39 31 |ode in t|he -8191|
|000058f0| 20 72 65 73 6f 75 72 63 | 65 20 74 6f 20 72 65 66 | resourc|e to ref|
|00005900| 6c 65 63 74 20 74 68 65 | 20 63 68 6f 69 63 65 73 |lect the| choices|
|00005910| 20 6d 61 64 65 2e 20 20 | 48 6f 77 65 76 65 72 2c | made. |However,|
|00005920| 20 77 68 65 6e 20 4d 75 | 6c 74 69 46 69 6e 64 65 | when Mu|ltiFinde|
|00005930| 72 20 69 73 20 61 63 74 | 69 76 65 2c 20 79 6f 75 |r is act|ive, you|
|00005940| 20 63 61 6e 6e 6f 74 20 | 61 64 64 20 6f 72 20 63 | cannot |add or c|
|00005950| 68 61 6e 67 65 20 74 68 | 65 20 73 69 7a 65 20 6f |hange th|e size o|
|00005960| 66 20 72 65 73 6f 75 72 | 63 65 73 20 69 6e 20 74 |f resour|ces in t|
|00005970| 68 65 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 64 |he Laser|Writer d|
|00005980| 72 69 76 65 72 2e 20 20 | 46 6f 72 20 74 68 69 73 |river. |For this|
|00005990| 20 72 65 61 73 6f 6e 2c | 20 79 6f 75 20 73 68 6f | reason,| you sho|
|000059a0| 75 6c 64 20 70 61 64 20 | 74 68 65 20 27 66 65 65 |uld pad |the 'fee|
|000059b0| 64 27 20 2d 38 31 39 31 | 20 72 65 73 6f 75 72 63 |d' -8191| resourc|
|000059c0| 65 20 74 6f 20 74 68 65 | 20 6d 61 78 69 6d 75 6d |e to the| maximum|
|000059d0| 20 73 69 7a 65 2e 20 20 | 54 68 69 73 20 70 61 64 | size. |This pad|
|000059e0| 64 69 6e 67 20 63 61 6e | 20 62 65 20 64 6f 6e 65 |ding can| be done|
|000059f0| 20 62 79 20 61 64 64 69 | 6e 67 20 73 70 61 63 65 | by addi|ng space|
|00005a00| 73 20 61 74 20 74 68 65 | 20 65 6e 64 2e 20 20 49 |s at the| end. I|
|00005a10| 66 20 79 6f 75 20 6c 61 | 74 65 72 20 6e 65 65 64 |f you la|ter need|
|00005a20| 20 74 6f 20 72 65 73 69 | 7a 65 20 74 68 65 20 72 | to resi|ze the r|
|00005a30| 65 73 6f 75 72 63 65 2c | 20 79 6f 75 20 63 61 6e |esource,| you can|
|00005a40| 20 73 69 6d 70 6c 79 20 | 6f 76 65 72 77 72 69 74 | simply |overwrit|
|00005a50| 65 20 73 6f 6d 65 20 6f | 66 20 74 68 65 20 73 70 |e some o|f the sp|
|00005a60| 61 63 65 73 2e 20 20 46 | 6f 72 20 6d 6f 72 65 20 |aces. F|or more |
|00005a70| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6f 6e 20 70 |informat|ion on p|
|00005a80| 72 69 6e 74 65 72 20 64 | 72 69 76 65 72 73 20 75 |rinter d|rivers u|
|00005a90| 6e 64 65 72 20 4d 75 6c | 74 69 46 69 6e 64 65 72 |nder Mul|tiFinder|
|00005aa0| 2c 20 73 65 65 20 74 68 | 65 20 4c 65 61 72 6e 69 |, see th|e Learni|
|00005ab0| 6e 67 20 74 6f 20 44 72 | 69 76 65 20 64 6f 63 75 |ng to Dr|ive docu|
|00005ac0| 6d 65 6e 74 2c 20 77 68 | 69 63 68 20 69 73 20 70 |ment, wh|ich is p|
|00005ad0| 61 72 74 20 6f 66 20 d2 | 44 65 76 65 6c 6f 70 65 |art of .|Develope|
|00005ae0| 72 20 45 73 73 65 6e 74 | 69 61 6c 73 2c d3 20 61 |r Essent|ials,. a|
|00005af0| 6e 64 20 69 73 20 61 76 | 61 69 6c 61 62 6c 65 20 |nd is av|ailable |
|00005b00| 6f 6e 20 41 70 70 6c 65 | 4c 69 6e 6b 2c 20 74 68 |on Apple|Link, th|
|00005b10| 65 20 41 70 70 6c 65 20 | 46 54 50 20 73 69 74 65 |e Apple |FTP site|
|00005b20| 2c 20 61 6e 64 20 74 68 | 65 20 44 65 76 65 6c 6f |, and th|e Develo|
|00005b30| 70 65 72 20 43 44 20 53 | 65 72 69 65 73 2e 0d 59 |per CD S|eries..Y|
|00005b40| 6f 75 20 70 72 6f 62 61 | 62 6c 79 20 6e 65 65 64 |ou proba|bly need|
|00005b50| 20 74 6f 20 70 72 6f 76 | 69 64 65 20 6f 74 68 65 | to prov|ide othe|
|00005b60| 72 20 72 65 73 6f 75 72 | 63 65 73 20 61 6c 6f 6e |r resour|ces alon|
|00005b70| 67 20 77 69 74 68 20 74 | 68 65 20 27 66 65 65 64 |g with t|he 'feed|
|00005b80| 27 20 72 65 73 6f 75 72 | 63 65 73 3b 20 66 6f 72 |' resour|ces; for|
|00005b90| 20 65 78 61 6d 70 6c 65 | 2c 20 79 6f 75 20 6e 65 | example|, you ne|
|00005ba0| 65 64 20 27 44 49 54 4c | 27 20 61 6e 64 20 27 44 |ed 'DITL|' and 'D|
|00005bb0| 4c 4f 47 27 20 72 65 73 | 6f 75 72 63 65 73 20 66 |LOG' res|ources f|
|00005bc0| 6f 72 20 74 68 65 20 64 | 69 61 6c 6f 67 20 62 6f |or the d|ialog bo|
|00005bd0| 78 2e 20 20 54 68 69 73 | 20 69 73 20 6f 6b 61 79 |x. This| is okay|
|00005be0| 2c 20 62 75 74 20 79 6f | 75 20 73 68 6f 75 6c 64 |, but yo|u should|
|00005bf0| 20 62 65 20 73 75 72 65 | 20 74 6f 20 70 69 63 6b | be sure| to pick|
|00005c00| 20 75 6e 69 71 75 65 20 | 72 65 73 6f 75 72 63 65 | unique |resource|
|00005c10| 20 74 79 70 65 73 20 74 | 6f 20 61 76 6f 69 64 20 | types t|o avoid |
|00005c20| 63 6f 6e 66 75 73 69 6e | 67 20 74 68 65 20 4c 61 |confusin|g the La|
|00005c30| 73 65 72 57 72 69 74 65 | 72 20 64 72 69 76 65 72 |serWrite|r driver|
|00005c40| 2e 20 20 49 6e 20 74 68 | 65 20 63 61 73 65 20 6f |. In th|e case o|
|00005c50| 66 20 61 20 46 65 65 64 | 65 72 20 62 75 74 74 6f |f a Feed|er butto|
|00005c60| 6e 2c 20 79 6f 75 20 61 | 72 65 20 61 20 67 75 65 |n, you a|re a gue|
|00005c70| 73 74 20 69 6e 20 73 6f | 6d 65 6f 6e 65 20 65 6c |st in so|meone el|
|00005c80| 73 65 d5 73 20 68 6f 75 | 73 65 2e 20 20 49 74 20 |se.s hou|se. It |
|00005c90| 77 6f 75 6c 64 20 62 65 | 20 77 69 73 65 20 74 6f |would be| wise to|
|00005ca0| 20 61 76 6f 69 64 20 72 | 65 61 72 72 61 6e 67 69 | avoid r|earrangi|
|00005cb0| 6e 67 20 74 68 65 20 66 | 75 72 6e 69 74 75 72 65 |ng the f|urniture|
|00005cc0| 2e 0d 57 68 65 6e 20 74 | 68 65 20 4c 61 73 65 72 |..When t|he Laser|
|00005cd0| 57 72 69 74 65 72 20 64 | 72 69 76 65 72 20 61 63 |Writer d|river ac|
|00005ce0| 74 75 61 6c 6c 79 20 6f | 70 65 6e 73 20 74 68 65 |tually o|pens the|
|00005cf0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 6f 20 74 | connect|ion to t|
|00005d00| 68 65 20 70 72 69 6e 74 | 65 72 2c 20 69 74 20 6c |he print|er, it l|
|00005d10| 6f 6f 6b 73 20 66 6f 72 | 20 27 66 65 65 64 27 20 |ooks for| 'feed' |
|00005d20| 72 65 73 6f 75 72 63 65 | 73 20 2d 38 31 39 31 20 |resource|s -8191 |
|00005d30| 61 6e 64 20 2d 38 31 39 | 30 2e 20 20 49 66 20 74 |and -819|0. If t|
|00005d40| 68 65 79 20 65 78 69 73 | 74 2c 20 74 68 65 79 20 |hey exis|t, they |
|00005d50| 61 72 65 20 64 6f 77 6e | 6c 6f 61 64 65 64 2e 20 |are down|loaded. |
|00005d60| 20 46 6f 72 20 74 68 6f | 73 65 20 66 61 6d 69 6c | For tho|se famil|
|00005d70| 69 61 72 20 77 69 74 68 | 20 74 68 65 20 27 50 52 |iar with| the 'PR|
|00005d80| 45 43 27 20 31 30 33 20 | 6d 65 74 68 6f 64 20 6f |EC' 103 |method o|
|00005d90| 66 20 64 6f 77 6e 6c 6f | 61 64 69 6e 67 20 50 6f |f downlo|ading Po|
|00005da0| 73 74 53 63 72 69 70 74 | 20 63 6f 64 65 20 28 72 |stScript| code (r|
|00005db0| 65 66 65 72 20 74 6f 20 | 54 65 63 68 6e 69 63 61 |efer to |Technica|
|00005dc0| 6c 20 4e 6f 74 65 20 23 | 31 39 32 2c 20 53 75 72 |l Note #|192, Sur|
|00005dd0| 70 72 69 73 65 64 20 69 | 6e 20 4c 61 73 65 72 57 |prised i|n LaserW|
|00005de0| 72 69 74 65 72 20 35 2e | 32 20 61 6e 64 20 4e 65 |riter 5.|2 and Ne|
|00005df0| 77 65 72 29 2c 20 74 68 | 65 20 27 66 65 65 64 27 |wer), th|e 'feed'|
|00005e00| 20 72 65 73 6f 75 72 63 | 65 73 20 61 72 65 20 64 | resourc|es are d|
|00005e10| 6f 77 6e 6c 6f 61 64 65 | 64 20 62 65 66 6f 72 65 |ownloade|d before|
|00005e20| 20 74 68 65 20 27 50 52 | 45 43 27 20 31 30 33 20 | the 'PR|EC' 103 |
|00005e30| 72 65 73 6f 75 72 63 65 | 2e 20 20 49 6e 20 74 68 |resource|. In th|
|00005e40| 65 20 63 61 73 65 20 6f | 66 20 62 61 63 6b 67 72 |e case o|f backgr|
|00005e50| 6f 75 6e 64 20 70 72 69 | 6e 74 69 6e 67 2c 20 74 |ound pri|nting, t|
|00005e60| 68 65 20 72 65 73 6f 75 | 72 63 65 73 20 61 72 65 |he resou|rces are|
|00005e70| 20 63 6f 70 69 65 64 20 | 69 6e 74 6f 20 74 68 65 | copied |into the|
|00005e80| 20 73 70 6f 6f 6c 20 66 | 69 6c 65 2e 20 20 53 69 | spool f|ile. Si|
|00005e90| 6e 63 65 20 27 66 65 65 | 64 27 20 72 65 73 6f 75 |nce 'fee|d' resou|
|00005ea0| 72 63 65 73 20 2d 38 31 | 39 31 20 61 6e 64 20 2d |rces -81|91 and -|
|00005eb0| 38 31 39 30 20 61 72 65 | 20 61 75 74 6f 6d 61 74 |8190 are| automat|
|00005ec0| 69 63 61 6c 6c 79 20 64 | 6f 77 6e 6c 6f 61 64 65 |ically d|ownloade|
|00005ed0| 64 20 62 79 20 74 68 65 | 20 4c 61 73 65 72 57 72 |d by the| LaserWr|
|00005ee0| 69 74 65 72 2c 20 74 68 | 65 79 20 6d 75 73 74 20 |iter, th|ey must |
|00005ef0| 63 6f 6e 74 61 69 6e 20 | 50 6f 73 74 53 63 72 69 |contain |PostScri|
|00005f00| 70 74 20 63 6f 64 65 2e | 20 20 54 68 65 20 66 6f |pt code.| The fo|
|00005f10| 72 6d 61 74 20 6f 66 20 | 74 68 65 73 65 20 50 6f |rmat of |these Po|
|00005f20| 73 74 53 63 72 69 70 74 | 20 72 65 73 6f 75 72 63 |stScript| resourc|
|00005f30| 65 73 20 69 73 20 61 20 | 73 74 72 69 6e 67 20 6f |es is a |string o|
|00005f40| 66 20 41 53 43 49 49 20 | 63 68 61 72 61 63 74 65 |f ASCII |characte|
|00005f50| 72 73 20 77 69 74 68 6f | 75 74 20 61 6e 79 20 6c |rs witho|ut any l|
|00005f60| 65 6e 67 74 68 20 62 79 | 74 65 20 6f 72 20 74 65 |ength by|te or te|
|00005f70| 72 6d 69 6e 61 74 6f 72 | 2e 20 20 54 68 65 20 73 |rminator|. The s|
|00005f80| 69 7a 65 20 6f 66 20 74 | 68 65 20 73 74 72 69 6e |ize of t|he strin|
|00005f90| 67 20 69 73 20 64 65 74 | 65 72 6d 69 6e 65 64 20 |g is det|ermined |
|00005fa0| 62 79 20 74 68 65 20 73 | 69 7a 65 20 6f 66 20 74 |by the s|ize of t|
|00005fb0| 68 65 20 72 65 73 6f 75 | 72 63 65 3b 20 74 68 65 |he resou|rce; the|
|00005fc0| 72 65 20 61 72 65 20 6e | 6f 20 73 70 65 63 69 61 |re are n|o specia|
|00005fd0| 6c 20 73 69 7a 65 20 72 | 65 73 74 72 69 63 74 69 |l size r|estricti|
|00005fe0| 6f 6e 73 20 6f 6e 20 74 | 68 65 73 65 20 72 65 73 |ons on t|hese res|
|00005ff0| 6f 75 72 63 65 73 2c 20 | 61 6e 64 20 74 68 65 69 |ources, |and thei|
|00006000| 72 20 6f 6e 6c 79 20 72 | 65 71 75 69 72 65 6d 65 |r only r|equireme|
|00006010| 6e 74 20 69 73 20 74 68 | 61 74 20 74 68 65 79 20 |nt is th|at they |
|00006020| 63 6f 6e 74 61 69 6e 20 | 50 6f 73 74 53 63 72 69 |contain |PostScri|
|00006030| 70 74 20 63 6f 64 65 2e | 20 20 54 6f 20 6d 61 6b |pt code.| To mak|
|00006040| 65 20 64 65 62 75 67 67 | 69 6e 67 20 65 61 73 69 |e debugg|ing easi|
|00006050| 65 72 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 73 |er, you |should s|
|00006060| 65 70 61 72 61 74 65 20 | 6c 69 6e 65 73 20 6f 66 |eparate |lines of|
|00006070| 20 50 6f 73 74 53 63 72 | 69 70 74 20 75 73 69 6e | PostScr|ipt usin|
|00006080| 67 20 61 20 63 61 72 72 | 69 61 67 65 20 72 65 74 |g a carr|iage ret|
|00006090| 75 72 6e 20 63 68 61 72 | 61 63 74 65 72 20 28 31 |urn char|acter (1|
|000060a0| 33 20 6f 72 20 24 30 44 | 20 68 65 78 29 2e 0d 44 |3 or $0D| hex)..D|
|000060b0| 6f 6e 27 74 20 46 65 65 | 64 20 54 68 65 20 50 72 |on't Fee|d The Pr|
|000060c0| 69 6e 74 20 4d 6f 6e 73 | 74 65 72 0d 4f 6e 65 20 |int Mons|ter.One |
|000060d0| 6c 61 73 74 20 69 6d 70 | 6f 72 74 61 6e 74 20 6e |last imp|ortant n|
|000060e0| 6f 74 65 20 63 6f 6e 63 | 65 72 6e 73 20 74 68 65 |ote conc|erns the|
|000060f0| 20 36 2e 31 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 | 6.1 ver|sion of |
|00006100| 74 68 65 20 4c 61 73 65 | 72 57 72 69 74 65 72 20 |the Lase|rWriter |
|00006110| 64 72 69 76 65 72 2c 20 | 73 68 69 70 70 65 64 20 |driver, |shipped |
|00006120| 6f 6e 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |on the M|acintosh|
|00006130| 20 50 72 69 6e 74 69 6e | 67 20 54 6f 6f 6c 73 20 | Printin|g Tools |
|00006140| 64 69 73 6b 20 69 6e 63 | 6c 75 64 65 64 20 77 69 |disk inc|luded wi|
|00006150| 74 68 20 74 68 65 20 50 | 65 72 73 6f 6e 61 6c 20 |th the P|ersonal |
|00006160| 4c 61 73 65 72 57 72 69 | 74 65 72 20 4c 53 20 61 |LaserWri|ter LS a|
|00006170| 6e 64 20 53 74 79 6c 65 | 57 72 69 74 65 72 2e 20 |nd Style|Writer. |
|00006180| 20 49 6e 20 74 68 69 73 | 20 76 65 72 73 69 6f 6e | In this| version|
|00006190| 20 6f 66 20 74 68 65 20 | 64 72 69 76 65 72 2c 20 | of the |driver, |
|000061a0| 74 68 65 20 46 65 65 64 | 65 72 20 62 75 74 74 6f |the Feed|er butto|
|000061b0| 6e 20 77 69 6c 6c 20 6f | 6e 6c 79 20 77 6f 72 6b |n will o|nly work|
|000061c0| 20 77 68 65 6e 20 42 61 | 63 6b 67 72 6f 75 6e 64 | when Ba|ckground|
|000061d0| 20 70 72 69 6e 74 69 6e | 67 20 69 73 20 64 69 73 | printin|g is dis|
|000061e0| 61 62 6c 65 64 2e 20 20 | 54 68 65 72 65 20 69 73 |abled. |There is|
|000061f0| 20 61 20 70 72 6f 62 6c | 65 6d 20 77 69 74 68 20 | a probl|em with |
|00006200| 74 68 65 20 64 72 69 76 | 65 72 20 66 69 6e 64 69 |the driv|er findi|
|00006210| 6e 67 20 74 68 65 20 27 | 66 65 65 64 27 20 72 65 |ng the '|feed' re|
|00006220| 73 6f 75 72 63 65 73 20 | 77 68 65 6e 20 42 61 63 |sources |when Bac|
|00006230| 6b 67 72 6f 75 6e 64 20 | 70 72 69 6e 74 69 6e 67 |kground |printing|
|00006240| 20 69 73 20 65 6e 61 62 | 6c 65 64 2e 20 20 54 68 | is enab|led. Th|
|00006250| 69 73 20 70 72 6f 62 6c | 65 6d 20 68 61 73 20 62 |is probl|em has b|
|00006260| 65 65 6e 20 73 6f 6c 76 | 65 64 20 69 6e 20 74 68 |een solv|ed in th|
|00006270| 65 20 37 2e 30 20 76 65 | 72 73 69 6f 6e 20 6f 66 |e 7.0 ve|rsion of|
|00006280| 20 74 68 65 20 64 72 69 | 76 65 72 20 77 68 69 63 | the dri|ver whic|
|00006290| 68 20 73 68 6f 75 6c 64 | 20 62 65 20 75 73 65 64 |h should| be used|
|000062a0| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 74 68 65 20 | instead| of the |
|000062b0| 36 2e 31 20 64 72 69 76 | 65 72 20 61 73 20 73 6f |6.1 driv|er as so|
|000062c0| 6f 6e 20 61 73 20 69 74 | 20 69 73 20 61 76 61 69 |on as it| is avai|
|000062d0| 6c 61 62 6c 65 2e 20 20 | 53 69 6e 63 65 20 74 68 |lable. |Since th|
|000062e0| 65 72 65 20 69 73 20 6e | 6f 20 77 6f 72 6b 61 72 |ere is n|o workar|
|000062f0| 6f 75 6e 64 20 66 6f 72 | 20 74 68 65 20 70 72 6f |ound for| the pro|
|00006300| 62 6c 65 6d 2c 20 79 6f | 75 20 64 6f 6e 27 74 20 |blem, yo|u don't |
|00006310| 72 65 61 6c 6c 79 20 68 | 61 76 65 20 74 6f 20 64 |really h|ave to d|
|00006320| 6f 20 61 6e 79 74 68 69 | 6e 67 20 65 78 63 65 70 |o anythi|ng excep|
|00006330| 74 20 66 6f 72 20 70 6f | 73 73 69 62 6c 79 20 6e |t for po|ssibly n|
|00006340| 6f 74 69 6e 67 20 69 74 | 20 69 6e 20 79 6f 75 72 |oting it| in your|
|00006350| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 2e 20 | documen|tation. |
|00006360| 20 41 6e 79 20 6e 6f 74 | 65 20 73 68 6f 75 6c 64 | Any not|e should|
|00006370| 20 72 65 63 6f 6d 6d 65 | 6e 64 20 75 70 67 72 61 | recomme|nd upgra|
|00006380| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 37 2e 30 20 |ding to |the 7.0 |
|00006390| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 65 20 64 |version |of the d|
|000063a0| 72 69 76 65 72 20 61 73 | 20 73 6f 6f 6e 20 61 73 |river as| soon as|
|000063b0| 20 70 6f 73 73 69 62 6c | 65 2e 0d 44 72 69 76 69 | possibl|e..Drivi|
|000063c0| 6e 67 20 4d 69 73 73 20 | 4c 61 73 65 79 0d 4e 6f |ng Miss |Lasey.No|
|000063d0| 77 20 74 68 61 74 20 79 | 6f 75 20 68 61 76 65 20 |w that y|ou have |
|000063e0| 74 68 65 20 74 77 6f 20 | 6f 72 20 74 68 72 65 65 |the two |or three|
|000063f0| 20 27 66 65 65 64 27 20 | 72 65 73 6f 75 72 63 65 | 'feed' |resource|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.